[Portland-bugs] [Bug 98615] New: Add screensaver inhibition monitor to xdg-screensaver

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 6 17:38:57 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98615

            Bug ID: 98615
           Summary: Add screensaver inhibition monitor to xdg-screensaver
           Product: Portland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: rrt at sc3d.org

It would be useful to be able to monitor the state of screensaver inhibition.
xdg-screensaver provides the ability to find the current status, but that's
only enough to write a polling implementation.

However, most modern desktops, using D-Bus, allow for a "push" implementation,
where a client can listen for inhibition state changes.

It would be good to abstract this in xdg-screensaver.

Suggestion:

xdg-screensaver status-listen

starts a process that listens for changes to the status, and reports them on
stdout. The parent can then take appropriate action.

Motivating case: I'd like to be able to add this function to caffeine-indicator
(so that the indicator correctly indicates the status of the whole desktop, not
just whether it is itself inhibiting the screensaver), without either
inefficient polling that is not necessary, or reimplementation of code already
mostly present in xdg-screensaver.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20161106/c6da2dee/attachment.html>


More information about the Portland-bugs mailing list