From aa3d5d5bb8fda8c11e0917f02e5e4c68ad8ea0e7 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 24 Oct 2025 17:14:13 +0200 Subject: [PATCH] fix: only make dbus env variable available to host script --- containers/fedora/config/bin/host | 1 + devc.sh | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/containers/fedora/config/bin/host b/containers/fedora/config/bin/host index e991bc4..f8fe5ed 100755 --- a/containers/fedora/config/bin/host +++ b/containers/fedora/config/bin/host @@ -1,3 +1,4 @@ #!/bin/bash +export DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/bus host-spawn -cwd "${PWD/#$HOME/$HOST_HOME}" \ $([ "$(basename "$0")" != "host" ] && echo "$(basename "$0")") "$@" diff --git a/devc.sh b/devc.sh index 9f7f1ec..0a86901 100755 --- a/devc.sh +++ b/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" ;;