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
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

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
''}