fix: only make dbus env variable available to host script
Some checks failed
Build container / fedora-build (push) Failing after 2m5s

This commit is contained in:
Job
2025-10-24 17:14:13 +02:00
parent 28766d5e87
commit aa3d5d5bb8
2 changed files with 4 additions and 4 deletions

View File

@@ -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" ;;