mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
nixos/display-managers: Also set DBUS_SESSION_BUS_ADDRESS in the wrapper script context
This commit is contained in:
parent
3e66d4e12e
commit
0f1eb8cd79
@ -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
|
||||
''}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user