Commit a9d0eb92 authored by Michael Weiser's avatar Michael Weiser Committed by Sean Davis

Fix inhibitor proxying (bug #16356)

When inhibiting the screensaver using e.g. xfce4-screensaver-command -q,
xfce4-screensaver would report an error:

org.freedesktop.DBus.Error.ServiceUnknown raised: The name
org.freedesktop.login1 was not provided by any .service files

Consequently, no inhibitor was added to logind. This was due
to the fact that the wrong connection was used for the dbus message and
thus logind expected on the session bus.

Switching to the system connection to correctly relay the inhibitor to
logind.
Signed-off-by: Sean Davis's avatarSean Davis <smd.seandavis@gmail.com>
parent 25681432
......@@ -612,7 +612,7 @@ add_session_inhibit (GSListener *listener,
dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &mode);
/* FIXME: use async? */
reply = dbus_connection_send_with_reply_and_block (listener->priv->connection,
reply = dbus_connection_send_with_reply_and_block (listener->priv->system_connection,
message,
-1,
&error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment