diff options
author | 2015-04-15 22:39:01 +0200 | |
---|---|---|
committer | 2015-04-15 22:40:19 +0200 | |
commit | dd12040ebe7c4006eab56c0d4a18d495274cf37d (patch) | |
tree | 83c0ce18519280a650ed34ef8df48f567cb4544e /sub | |
parent | e6d7e550125873f46126f3d23c4970df1976a269 (diff) |
x11: actually disable screensaver
We already use 2 screensaver APIs when attempting to disable the
screensaver: XResetScreenSaver() (from xlib) and XScreenSaverSuspend
(from the X11 Screen Saver extension). None of these actually work.
On modern desktop Linux, we are expected to make dbus calls using some
freedesktop-defined protocol (and possibly we'd have to fallback to a
Gnome specific one). At least xscreensaver doesn't respect the "old"
APIs either.
Solve this by running the xdg-screensaver script. It's a terrible, ugly
piece of shit (just read the script if you disagree), but at least it
appears to work everywhere. It's also simpler than involving various
dbus client libraries.
I hope this can replace the --heartbeat-cmd option, and maybe we could
remove our own DPMS/XSS code too.
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions