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 committed May 18, 2020
1 parent 0f5ce2f commit effceb8
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 effceb8

Please sign in to comment.