Bug 98616 - Add window-less "xdg-screensaver suspend"
Summary: Add window-less "xdg-screensaver suspend"
Status: RESOLVED WONTFIX
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-06 17:41 UTC by Reuben Thomas
Modified: 2017-02-28 15:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.