[Xfce4-commits] [apps/xfce4-screensaver] 01/01: Fix inhibitor proxying (bug #16356)

noreply at xfce.org noreply at xfce.org
Wed Jan 15 11:41:13 CET 2020


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

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit a9d0eb923bb379ad2b4767d09fde6e87577c46cd
Author: Michael Weiser <michael.weiser at 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.seandavis at 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.


More information about the Xfce4-commits mailing list