Bug 98616

Summary: Add window-less "xdg-screensaver suspend"
Product: Portland Reporter: Reuben Thomas <rrt>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Reuben Thomas 2016-11-06 17:41:55 UTC
Sometimes an application, such as caffeine-indicator, which allows the user manually to inhibit the screensaver, does not have a window to use with xdg-screensaver suspend.

In such a case, or even in others, it would be convenient to use a process as the "locking entity".

Suggestion:

xdg-screensaver suspend # note: no window ID

should start a process that suspends the screensaver, and resumes it on SIGHUP, SIGINT, or anything else it can catch.

Indeed, for most modern desktops, even kill -9'ing the process will not leave the screensaver inhibited, as the "resume" action is a no-op.
Comment 1 Rex Dieter 2017-02-28 15:08:37 UTC
While nice in some circumstances, I don't think this suggestion will ever get implemented, sorry.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.