Comments (2)
It seems that distrobox enter
adds --env XAUTHORITY=${XAUTHORITY}
anyway in that generic for-loop: https://github.com/89luca89/distrobox/blob/1.7.2.1/distrobox-enter#L443
But still it is not present when doing:
env | grep XAUTHORITY
But if I run created container by distrobox create
using podman exec
:
podman exec --interactive --tty --detach-keys="" --user=root --workdir="${HOME}" --env XAUTHORITY <container> su "${USER}" --pty
Then the XAUTHORITY
environment variable is not empty. I'm trying to narrow the issue here. Above command is also ran by distrobox enter
. After podman exec
and before <container>
the distrobox enter
adds bunch of additionals --env
. Something is causing that the XAUTHORITY
environment variable is unset after switching from root
to user.
from distrobox.
Short story. When --env DISPLAY=:0
is present, it will clear XAUTHORITY
. I have been using custom AlmaLinux OS 9.3 with added user etc.. Somehow when calling su "${USER}" --pty
when switching from root
to user by distrobox enter
, it clears XAUTHORITY
environment variable. With vanilla AlmaLinux OS 9.3 it doesn't happen.
Not working host-spawn
in distrobox-init
is OK/not relavant for me because it should be fixed by distrobox-enter
and --env XAUTHORITY
from this loop https://github.com/89luca89/distrobox/blob/1.7.2.1/distrobox-enter#L443
I will try to narrow problem in my custom container image based on AlmaLinux OS 9.3 and share minimum Dockerfile
to reproduce that.
from distrobox.
Related Issues (20)
- [Error] distrobox enter fails if Username has "\" in name
- [QUESTION] How to run an entire desktop environment from distrobox
- shell prompt no longer differentiates when inside container HOT 1
- /home/USER/.local/bin/distrobox-create: 1: eval: tmpdir: parameter not set HOT 2
- [Error] Distrobox container created itโs own password, canโt use sudo. HOT 3
- [Discussion] Chrooting into arm/arm64 environment from distrobox
- Keyboard doesn't work in Ubuntu box
- [Discussion] Ubuntu 24.04 container - ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave HOT 3
- [Error] Cannot enter a void linux container from a void linux host
- Importing display for running mutter.
- Distrobox enter hangs indefinitely upon restarting image HOT 3
- [Error] Can't install things in Ubuntu 22 container because directories are owned by nobody:nogroup
- [Suggestion] Allow changing linux capabilities
- [Error :: installing systemd (255.6-1) breaks dependency 'systemd=255.5' required by systemd-sysvcompat HOT 1
- [Error] dbus-broker-units: /usr/lib/systemd/system/dbus.service exists in filesystem (owned by dbus) HOT 1
- [Error] Ephemeral Distrobox (v1.7.2.1) not running on Ubuntu 23.10/Docker 26.1.1
- [Discussion] Bluetooth inside container
- [Error] distrobox-host-exec HOT 2
- Distrobox requires Internet to enter a container
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distrobox.