New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lightdm: enable the accounts daemon to find dbus interface #45107
Conversation
@@ -212,6 +212,10 @@ in | |||
# lightdm uses the accounts daemon to rember language/window-manager per user | |||
services.accounts-daemon.enable = true; | |||
|
|||
# Enable the accounts daemon to find lightdm's dbus interface | |||
environment.pathsToLink = [ "/share/accountsservice" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should go to accountsservice.nix
. There might be other extensions than lightdm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Done.
|
||
wantedBy = [ "graphical.target" ]; | ||
|
||
} // (mkIf (!config.users.mutableUsers) { | ||
# Accounts daemon looks for dbus interfaces in $XDG_DATA_DIRS/accountsservice | ||
environment.XDG_DATA_DIRS = "/run/current-system/sw/share"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something like ${config.system.path}/share
should be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thank you for your review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, shouldn't systemd system services run in an environment that has XDG_DATA_DIRS
set appropriately for the current system? I'm surprised more things don't break if that not true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variables are often set by login shell, so the services cannot see them. It is probably good thing, as the unclean environment could produce unpredictable behaviour.
c4f4167
to
7fbdd7f
Compare
Looks great, thanks. |
Motivation for this change
Fix #45059
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)