<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Add screensaver inhibition monitor to xdg-screensaver"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98615">98615</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add screensaver inhibition monitor to xdg-screensaver
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>xdg-utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>portland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rrt@sc3d.org
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>