at_console: ask systemd whether a user is at the console
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Feb 2012 04:06:25 +0000 (05:06 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 7 Feb 2012 16:06:33 +0000 (16:06 +0000)
commitba71873c7299f9aa58a1e0537ab11831b98ab376
tree92706108b476bcaf4c67c6db68ba74ea946b07a5
parent7eca1ce532c9e1af68fb059f29a34ff25a5ac850
at_console: ask systemd whether a user is at the console

systemd manages seats and users. This patch optionally asks systemd
whether a user is at the console. It used libsystemd-login for that, a
low-level library that allows querying this kind of information without
expensive round trips.

In order to be nice to the Debian folks this patch falls back to
traditional modes of operation if systemd is not found to be around.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39609
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
configure.ac
dbus/Makefile.am
dbus/dbus-userdb-util.c