Skip to content

Commit 1c46abb

Browse files
committed
Sync environment variables from the user session into systemd and dbus
We're already syncing environment variables from the systemd user manager into the user session, but some variables may be set in the user session that aren't in the user manager or dbus-daemon by default. This interferes with applications that are launched by the user manager or dbus-daemon, such as Ptyxis and Kicksecure's fm-shim system. Sync environment variables from the user session into the systemd user manager and dbus-daemon to fix this. Fixes: QubesOS/qubes-issues#10759 Fixes: QubesOS/qubes-issues#10712
1 parent b0102e2 commit 1c46abb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

appvm-scripts/usrbin/qubes-session

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ VMTYPE=$(/usr/bin/qubesdb-read /qubes-vm-type)
5151
UPDTYPE=$(/usr/bin/qubesdb-read /qubes-vm-updateable)
5252
[[ $UPDTYPE == 'True' ]] && UPDTYPE="UpdateableVM" || UPDTYPE="NonUpdateableVM"
5353

54+
# Sync environment variables from the user session into the systemd user
55+
# manager and dbus-daemon
56+
dbus-update-activation-environment --systemd --all
57+
5458
# process /etc/xdg/autostart and friends (according to Desktop Application
5559
# Autostart Specification)
5660
/usr/bin/qubes-session-autostart QUBES X-QUBES "X-$VMTYPE" "X-$UPDTYPE"

0 commit comments

Comments
 (0)