89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.93k stars 409 forks source link

How distrobox is passing the host's display server into docker ? #1558

Open ALEX5402 opened 3 weeks ago

ALEX5402 commented 3 weeks ago

I just want to know how the distrobox is passing the host's display server into the docker can anyone help me 🙂

i tryed with this but not working

docker run -e WAYLAND_DISPLAY=wayland-0 \ -e XDG_RUNTIME_DIR=/run/user/1000 \ -v /run/user/1000/wayland-0:/run/user/1000/wayland-0 \ -v /run/user/1000:/run/user/1000 \ --device /dev/dri \ -it alex5402/endeavouros bash

softmoth commented 1 week ago

Look at /etc/profile.d/distrobox_profile.sh in the container, which is generated during distrobox-init.