[totem/gnome-3-30] screensaver: Don't autostart gnome-screensaver when running in non-GNOME



commit f5e7c5e21078c8980051258bb2bedc2f9be97f54
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 14 11:57:24 2018 +0100

    screensaver: Don't autostart gnome-screensaver when running in non-GNOME
    
    When running in GNOME, we'd monitor the state of the screensaver. That
    doesn't work in non-GNOME desktops, as implementors of
    org.gnome.ScreenSaver will get started, such as gnome-screensaver and
    cinnamon-screensaver, neither of which offer the API we expect anyway.
    
    See https://bugs.launchpad.net/ubuntu/+source/cinnamon-session/+bug/1803078

 src/plugins/screensaver/totem-screensaver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/screensaver/totem-screensaver.c b/src/plugins/screensaver/totem-screensaver.c
index 2c4bf158..ab10c8eb 100644
--- a/src/plugins/screensaver/totem-screensaver.c
+++ b/src/plugins/screensaver/totem-screensaver.c
@@ -177,7 +177,7 @@ impl_activate (PeasActivatable *plugin)
 
        pi->priv->cancellable = g_cancellable_new ();
        g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
-                                 G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
+                                 G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES | 
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
                                  NULL,
                                  "org.gnome.ScreenSaver",
                                  "/org/gnome/ScreenSaver",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]