Skip to content

Commit

Permalink
nixos/display-managers: Use dbus socket unit shipped by upstream
Browse files Browse the repository at this point in the history
This ensures a correct DBUS_SESSION_BUS_ADDRESS environment variable
is set and imported into the systemd user environment.

Previously this would refer to a non-existing path preventing commands
interacting with the systemd manager from working.

Closes NixOS#87502
  • Loading branch information
adisbladis authored and NickHu committed May 20, 2020
1 parent a1c59d8 commit be957b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/display-managers/default.nix
Expand Up @@ -39,7 +39,7 @@ let
${optionalString cfg.startDbusSession ''
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
exec ${pkgs.dbus.dbus-launch} --exit-with-session "$0" "$@"
${config.systemd.package}/bin/systemctl --user start dbus.socket
fi
''}
Expand Down

0 comments on commit be957b8

Please sign in to comment.