[systemd-devel] login: dbus equivalent of sd_pid_get_session ?
crobinso at redhat.com
Wed Feb 1 10:58:51 PST 2012
On 02/01/2012 01:07 PM, Lennart Poettering wrote:
> On Fri, 27.01.12 16:51, Cole Robinson (crobinso at redhat.com) wrote:
>> 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.
Great, thanks Lennart!
> 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.
virt-manager is written in python, so dbus is probably the way to go for now.
More information about the systemd-devel