Skip to content
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

D-Bus bus-activated service support #6102

Open
axelkar opened this issue Nov 19, 2024 · 1 comment
Open

D-Bus bus-activated service support #6102

axelkar opened this issue Nov 19, 2024 · 1 comment
Assignees

Comments

@axelkar
Copy link
Contributor

axelkar commented Nov 19, 2024

Description

dbus-daemon gives us support to load session service files from these HM-accessible directories:

  • $XDG_DATA_HOME/dbus-1/services (~/.local/share/dbus-1/services, maybe via activation hook?)
  • $XDG_DATA_DIRS/*/dbus-1/services (~/.nix-profile/share/*/dbus-1/services)

It seems that it's very possible to add bus-activated services to fix issues like #1454 (comment)

@axelkar
Copy link
Contributor Author

axelkar commented Nov 19, 2024

You can actually just put them in home.packages and they'll appear because all files and directories get linked. Now we just need a way to reliably propagate XDG_DATA_DIRS to dbus-daemon (and restart the daemon if the variable is changed).

Edit: Nevermind the environment variable stuff. NixOS automatically add all share directories of profile locations to XDG_DATA_DIRS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants