[systemd-devel] login: dbus equivalent of sd_pid_get_session ?

Lennart Poettering lennart at poettering.net
Wed Feb 1 10:07:26 PST 2012

On Fri, 27.01.12 16:51, Cole Robinson (crobinso at redhat.com) 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 Poettering - Red Hat, Inc.

More information about the systemd-devel mailing list