On Fri, 27.01.12 16:51, Cole Robinson ([email protected]) wrote:

> Hi,
> 
> I am wondering if there is a dbus API equivalent of sd_pid_get_session from
> sd-login.h  I know ConsoleKit provides a dbus API for it but I couldn't find
> something similar in login1 dbus interface. AIUI login1 is the future so just
> want to make sure I'm not using anything deprecated.

So far such a call didn't exist, but I have now added this to systemd
git, as GetSessionByPID() on the Manager object. I will upload a version
including this (v40) soon to F17.

Note that it is fine to mix libsystem-login.so calls with bus calls, and
the latter are usually simpler and faster to use than the latter which
require IPC.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to