Comment 14 for bug 1633520

Revision history for this message
In , Simon McVittie (smcv) wrote :

(In reply to Simon McVittie from comment #2)
> For the session bus, it would seem reasonable to search XDG_DATA_DIRS
> according to the basedir spec
> (<https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.
> html>). I'd rather do that than invent a new environment variable.

What I mean here is: take the logic we use for <standard_session_servicedirs/>, which I assume you're basically happy with because you don't seem to have patched it, and apply it to finding ${datadir}/dbus-1/session.conf (taking the first one and ignoring any that it "shadows" seems reasonable).

We implement <standard_session_servicedirs/> by behaving as though our compile-time @DATADIR@ had been appended to XDG_DATA_DIRS; the same would make sense for ${datadir}/dbus-1/session.conf.