fix: only make dbus env variable available to host script
Some checks failed
Build container / fedora-build (push) Failing after 2m5s
Some checks failed
Build container / fedora-build (push) Failing after 2m5s
This commit is contained in:
7
devc.sh
7
devc.sh
@@ -51,14 +51,13 @@ param_args() {
|
||||
arg "--device /dev/dri" ;;
|
||||
-host-spawn) # Enable spawning host commands from inside the container using host-spawn.
|
||||
arg "-v /run/user/$UID/bus:/tmp/bus"
|
||||
arg "-e HOST_HOME=$HOME" # Use to translate paths.
|
||||
arg "-e DBUS_SESSION_BUS_ADDRESS='unix:path=/tmp/bus'"
|
||||
arg "-e HOST_HOME=$HOME" # Used to translate paths.
|
||||
;;
|
||||
-x11) # Enable X11 support.
|
||||
arg "-e DISPLAY=$DISPLAY"
|
||||
arg "-e XAUTHORITY=/run/user/1000/.Xauthority"
|
||||
arg "-v /tmp/.X11-unix:/tmp/.X11-unix"
|
||||
arg "-v $XAUTHORITY:/run/user/1000/.Xauthority:ro"
|
||||
arg "-e DISPLAY=$DISPLAY"
|
||||
arg "-e XAUTHORITY=/run/user/1000/.Xauthority"
|
||||
;;
|
||||
*) # Use unknown arguments a podman arguments.
|
||||
arg "$1" ;;
|
||||
|
||||
Reference in New Issue
Block a user