This is an automated email from the git hooks/post-receive script.

bluesabre pushed a 
commit to branch 
master
in repository apps/xfce4-screensaver.

commit a9d0eb923bb379ad2b4767d09fde6e87577c46cd
Author: Michael Weiser <michael.wei...@gmx.de>
Date:   Wed Jan 8 23:11:29 2020 +0100

    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 <smd.seanda...@gmail.com>
---
 src/gs-listener-dbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index 009403b..28af393 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to