Comments (8)
Thanks for the report!
from dbus-broker.
Yeah, I am aware of this. This is implemented by dbus-daemon as the standard_{session,system}_servicedirs
configuration option. We should really follow XDG_DATA_DIRS here, rather than just hard-coding the single default path.
from dbus-broker.
@mbiebl, we now properly parse all the directories. See 28b926d.
I will close this. Lets track the duplicate-file
handling in the other issue.
Thanks a lot!
from dbus-broker.
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.
from dbus-broker.
With XDG_DATA_DIRS
I was mainly referring to the xdg-specification, not the env-variable itself. Right now, we never read the XDG_DATA_DIRS environment variable, but rather just use the default search-path as defined by the spec. However, we will gladly implement support for the env-variable, if that is needed.
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, XDG_DATA_HOME
is properly supported. That is, ~/.local/share
is searched by default, unless you make XDG_DATA_HOME point to some other directory.
Also, dbus-broker is usually spawned through its systemd unit, just like dbus-daemon is. So any environment variables available to systemd --user
are inherited by dbus-broker (I think...). Can you elaborate on your use-case? I'd be interested what setup you have, so we can see whether XDG_DATA_DIRS should be implemented.
from dbus-broker.
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.
from dbus-broker.
Fair enough.
from dbus-broker.
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!
from dbus-broker.
Related Issues (20)
- Can't locate expat HOT 2
- Wiki page minor correction HOT 2
- RFE: add destination/unit name to error messages HOT 5
- Error when enabling the service on Arch Linux HOT 4
- Invalid file in 'includedir' causes entire launch to fail HOT 4
- Integer overflow due to u64->u32 when passing the "limits" around (most likely happen to `max_bytes`) HOT 3
- dbus-broker-units has made Light Display Manager (lightdm) unable to start HOT 19
- With dbus-broker-units, the KDE (plasma) can't be loaded HOT 5
- Several Errors from dbus-broker-launch on linux boot | org.kde.dolphin.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1' HOT 6
- Running dbus-broker-launch without systemd (the reprise) HOT 6
- The default position of critical infrastructure cannot be complete system failure HOT 6
- Do not hard fail on a failed config parse in a manner which prevents the user from fixing it HOT 2
- How to replace dbus-broker as session bus? HOT 4
- dbus-broker uses an extremely high amount of memory HOT 2
- Error starting dbus-broker-launch HOT 5
- What are the field definitions for org.freedesktop.DBus.Debug.Status.UserAccounting HOT 2
- Test 48/49 libcstdaux-1failure with Clang HOT 1
- There seems to be a memory leak in policy_import
- RFE: improve dbus-broker's logging HOT 5
- Be able to set the servicedirs precedence HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbus-broker.