Fix test for logind availability
authorMartin Pitt <martinpitt@gnome.org>
Thu, 21 Mar 2013 08:24:21 +0000 (09:24 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 25 Mar 2013 13:57:57 +0000 (13:57 +0000)
commite25938d52731e1dc59b4aeaaec186578f8cd16af
treecfff99c49e7d23ce13b2b6a505faaf47e15fc8ac
parent15b2d2bb258483c191efb51ee6366c26318fd9f9
Fix test for logind availability

sd_booted() is not an appropriate check for whether we should talk to logind,
test for /run/systemd/seats/ instead.

For details, see:
<https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html>

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=62585
[trivial whitespace fix -smcv]
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-userdb-util.c