2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 1623
/ 3 Years ago, mon, august 9, 2021, 6:42:40
I have a cross-platform application that runs on Ubuntu 14.04 (GNOME). There I need to determine if the screensaver is active or not and if the screen is locked or not.
I found out that I can get the screensaver info with: gnome-screensaver-command -q
But I cannot seem to figure out how I can detect a screen lock. For example on Unity I can use:
gdbus call -e -d com.canonical.Unity -o /com/canonical/Unity/Session -m com.canonical.Unity.Session.IsLocked
but that's a Unity-specific item. So any ideas on how to get this info on Gnome machines?
More From » 14.04