I want to detect whether the screensaver is active. On Ubuntu 14.04 and Fedora 21, I tried the following command:
$ dbus-send --print-reply=literal --dest=org.freedesktop.ScreenSaver /org/freedesktop/ScreenSaver org.freedesktop.ScreenSaver.Lock Error org.freedesktop.DBus.Error.NotSupported: This method is not implemented
I'm probably misunderstanding
dbus-send as d-feet shows me that the method
GetActive is available.
How can I detect screensaver activity, preferably in a desktop independent manner? There is a related question, which however wasn't solved.