nixos/display-managers: Also set DBUS_SESSION_BUS_ADDRESS in the wrapper script context

This commit is contained in:
adisbladis
2020-05-20 20:42:43 +01:00
parent 3e66d4e12e
commit 0f1eb8cd79

View File

@@ -40,6 +40,7 @@ let
${optionalString cfg.startDbusSession ''
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
${config.systemd.package}/bin/systemctl --user start dbus.socket
export `${config.systemd.package}/bin/systemctl --user show-environment | grep '^DBUS_SESSION_BUS_ADDRESS'`
fi
''}