-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
dbus service: use /etc/dbus-1 for configuration #22343
Conversation
@abbradar, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @peterhoeg and @wkennington to be potential reviewers. |
Also use upstream systemd units.
I think last time we tweaked how dbus reads its config files it became a problem when doing a |
It should be okay if done 16.09 -> 17.03 because 16.09 already had and used |
They are already included by dbus from /run/current-system/sw/share/dbus-1.
I've noticed that D-Bus actually reads its own config file from cc @layus |
@abbradar Yes, I think it is better not to have twice the (nearly) same file. What still bothers me is
May I suggest to return to your initial solution, where the service is explicitly started with |
Also, the default system.conf has |
A disadvantage of the older approach is that those who do start dbus-daemon by themselves (like Xfce) will anyway go through We can be sure that dbus will read its own configuration file, and they definitely won't remove inclusion of I don't think explicit config file helps users to understand what's going on much because: Your concern about |
As this creates serious problems for Xfce users (disclosure: myself included but I have a custom nixpkgs branch anyway) I want to merge this sooner and postpone mass-rebuild changes (remove of |
Yes, indeed. Lets keep it like this, and try to push the datadir change later. |
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.
Works for me. Let's defer the other changes and merge this to fix the breakage. Thanks for investigating :-)
Also use upstream systemd units.
Motivation for this change
Fixes #22302 and brings us closer to upstream.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)Credits to @layus for noticing that if we use
/etc/dbus-1
we can also use upstream systemdExecStart
s as is.