Created attachment 38252 [details] [review]
Change screensaver_freedesktop's interpretation of GetActive
The freedesktop screensaver D-Bus API method GetActive seems to return boolean to indicate whether the screensaver is active ("saving" the screen), not whether the screensaver program is enabled. Therefore, the attached patch changes the interpretation of the response to GetActive such that a successful response (either true or false) indicates the screensaver program is enabled (even if not active) and a successful response that does not specify true or false indicates that the screensaver program is disabled.
Linking to related patch at https://bugs.freedesktop.org/show_bug.cgi?id=26085#c6 , which is also necessary to make KDE screensaver support work properly with the DBus API.
Note, also, that this patch and the linked patch were the basis of the GNOME screensaver support patch in Bug #29860, that was accepted.