I have two user accounts in my config. When logged in both users’ dbus service becomes immediately inactive (dead)
~ systemctl status dbus --user
● dbus.service - D-Bus User Message Bus
Loaded: loaded (/nix/store/q6lnpxs8s348c2ag7nq944c7cnbdfc7m-dbus-1.12.16/etc/systemd/user/dbus.service; indirect; vendor preset: enabled)
Drop-In: /nix/store/k8zfhm4jg4cyfllivj76h5nxqwi5qi5h-user-units/dbus.service.d
└─overrides.conf
Active: inactive (dead)
Docs: man:dbus-daemon(1)
No dbus actions (dunst via notify-send, unlocking panels in gnome-control-center etc.) work at all. I cannot find an option which would cause this in my configuration. I guess the question is:
how do I debug this issue in nixos (identify if its dbus, accountsservice etc. which is to blame) and what do I do to fix it?
Thanks @SRGOM - this fixed the dunst/notify-send issue but not the gnome one, but then another reboot later it stopped working even with the .xinitrc.
Upon attempting to unlock a control panel for a wheel user I get
(gnome-control-center:2716): Gtk-WARNING **: 17:52:32.120: Error acquiring permission: Failed to acquire permission for action-id org.gnome.controlcenter.user-accounts.administration
and when trying to set a user icon (as a simple example)
(gnome-control-center:2716): accountsservice-WARNING **: 17:52:53.146: SetIconFile call failed: GDBus.Error:org.freedesktop.Accounts.Error.Failed: file '/tmp/gnome-control-center-user-icon-1GMCB0' is not a regular file
which is what made me think it might all be related to accountsservice in the first place.
The more this goes on the more I think its to do with accountsservice completely. Manually running the dbus stuff from .xinitrc then logging out and in works fine for notify-send, but my user is still not recognised as being able to unlock panels. I can’t see the wood for the tres any more…
I’m using lightdm, but it behaves the same way under gdm. I’ve done a lot of fiddling and one or a combination of changes from here has fixed everything except one problem. The gnome–control-center was a problem with gnome-shell dying early on so not getting the overlay for password entry when not using gnome.
I still don’t understand why I’m getting this error though (which is accountsservice related).
(gnome-control-center:2716): accountsservice-WARNING **: 17:52:53.146: SetIconFile call failed: GDBus.Error:org.freedesktop.Accounts.Error.Failed: file '/tmp/gnome-control-center-user-icon-1GMCB0' is not a regular file