Adds listener for Gnome specific screensaver activation

This commit is contained in:
Mike Woudenberg 2017-12-03 13:17:43 +01:00
parent 18c4df98ff
commit 938cf8fce2

View File

@ -36,6 +36,14 @@ ScreenLockListenerDBus::ScreenLockListenerDBus(QWidget *parent):
this, //receiver this, //receiver
SLOT(freedesktopScreenSaver(bool))); SLOT(freedesktopScreenSaver(bool)));
sessionBus.connect(
"org.gnome.ScreenSaver", // service
"/org/gnome/ScreenSaver", // path
"org.gnome.ScreenSaver", // interface
"ActiveChanged", // signal name
this, //receiver
SLOT(freedesktopScreenSaver(bool)));
sessionBus.connect( sessionBus.connect(
"org.gnome.SessionManager", // service "org.gnome.SessionManager", // service
"/org/gnome/SessionManager/Presence", // path "/org/gnome/SessionManager/Presence", // path