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-broker-launch does not respect XDG_DATA_DIRS #40
Comments
Thanks for the report! |
Yeah, I am aware of this. This is implemented by dbus-daemon as the |
But where do you set XDG_DATA_DIRS so that it is picked up by the dbus launch? It apparently never reads .profile or related user setup files. |
With Can you elaborate what your use-case is? Why exactly do you need to adjust the broker's search path for service files? Furthermore, please note that only the session bus honors XDG_DATA_DIRS. The system bus uses hard-coded search-paths (we follow dbus-daemon(1) behavior here). Lastly, Also, dbus-broker is usually spawned through its systemd unit, just like dbus-daemon is. So any environment variables available to |
The use-case is to have an application/DE installed in a prefix. See also https://blog.martin-graesslin.com/blog/2014/06/dbus-activation-for-apps-in-prefix/ There is a work-around by using system setup, but it would be better if the launched dbus session daemon would read user variables. |
Fair enough. |
Completely forgot about this bug-report, I should have re-opened it... Anyway, XDG_DATA_DIRS is now supported in the newest release. Thanks a lot for the comments from everyone involved! |
My first attempt at working around #38 was to create an empty file /usr/local/share/dbus-1/services/org.kde.dolphin.FileManager1.service
It seems though as if dbus-broker-launch completely ignores any paths set via XDG_DATA_DIRS and only looks at /usr/share/dbus-1/services.
The text was updated successfully, but these errors were encountered: