diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2017-02-13 19:57:03 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2017-02-21 13:23:37 +0000 |
commit | 49b3ea6197f88e98bacf22d7c46294a21a2bdc8d (patch) | |
tree | 76b8227edf7d38f65c6c57ec28f1b421cd17508d /dbus/dbus-sysdeps-util-win.c | |
parent | b2be1400de81c12cf6e39e0f5f48e250c9322e52 (diff) |
sysdeps: Add accessor for a list of transient service directories
These directories can be used by service managers like `systemd --user`
and its generators, or by session infrastructure like gnome-session,
to synthesize D-Bus service files at runtime from some more canonical
source of information.
The intention is that this is in the XDG_RUNTIME_DIR as defined by the
freedesktop.org Base Directory Specification, which is private to the
user, and has a lifetime equal to the union of all the user's concurrent
login sessions.
This directory is provided on Linux systems that have systemd-logind and
pam_systemd, on other systems with PAM that have pam-xdg-support (which
has been abandoned by Ubuntu in favour of logind, but could be forked
by non-systemd environments that are interested in this functionality),
or any compatible reimplementation.
In practice this is most likely to be useful on systems that run
`dbus-daemon --session` from `systemd --user`.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=99825
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'dbus/dbus-sysdeps-util-win.c')
-rw-r--r-- | dbus/dbus-sysdeps-util-win.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-util-win.c b/dbus/dbus-sysdeps-util-win.c index eb860f4d..923fe3c5 100644 --- a/dbus/dbus-sysdeps-util-win.c +++ b/dbus/dbus-sysdeps-util-win.c @@ -1480,6 +1480,21 @@ _dbus_replace_install_prefix (DBusString *path) #define DBUS_STANDARD_SYSTEM_SERVICEDIR "/dbus-1/system-services" /** + * Returns the standard directories for a session bus to look for + * transient service activation files. On Windows, there are none. + * + * @param dirs the directory list we are returning + * @returns #TRUE + */ +dbus_bool_t +_dbus_set_up_transient_session_servicedirs (DBusList **dirs, + DBusError *error) +{ + /* Not an error, we just don't have transient session services on Windows */ + return TRUE; +} + +/** * Returns the standard directories for a session bus to look for service * activation files * |