Comment 7 for bug 1768801

Revision history for this message
avadeaux (ubuntu-avadeaux) wrote :

I couldn't get caffeine to work either. After trying various tips from the net without result without success, I fished out the relevant parts from the Python code to a minimal script, and debugged that until it worked. There were at least two problems. One was that xdg-screensaver identified the wrong screen saver to wake up (which wasn't caffeine's fault of course, but it made caffeine not work). It tried to wake up the Gnome screensaver, which wasn't even installed, instead of xscreensaver that I was using. Another was that ewmh.getActiveWindow() did not work when the script was running as a startup program in Gnome. There may have been more. Anyway, I'm attaching the very short script that worked as a caffeine replacement for my specific needs.