mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 00:09:53 -05:00
Adds listener for Gnome specific screensaver activation
This commit is contained in:
parent
18c4df98ff
commit
938cf8fce2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user