Skip to content

xdg-screensaver: Fix `reset` with GNOME 3

Tom Dryer requested to merge tdryer/xdg-utils:screensaver-reset into master

xdg-screensaver reset does not work with GNOME 3 because gnome-shell does not implement SimulateUserActivity(). Fix this by replacing it with SetActive(false), which deactivates the screensaver in both gnome-shell and gnome-screensaver.

Fixes #89.

Also:

Remove the gnome3 DE case, which is unused because the DE variable is overwritten to gnome_screensaver when org.gnome.ScreenSaver is found. This should be the case both with GNOME 2 (gnome-screensaver) and GNOME 3 (gnome-shell).

Merge request reports

Loading