<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 - Warn / fail if xdg-screensaver cannot find xprop"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97811">97811</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Warn / fail if xdg-screensaver cannot find xprop
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>1.1.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>nicolas+freedesktop@guillaumin.me
</td>
</tr></table>
<p>
<div>
<pre>On Gnome 3, xdg-screensaver fails to suspend the screensaver if xprop is not
installed.
Without xprop the $screensaver_file is not created (as xdg-screensaver cannot
retrieve the window ID), and so the "inhibitor" placed on the session via DBus
expires after the 10s sleep in the Perl DBus script loop.
---
while (1) {
sleep(10);
my $status = new IO::File($screensaver_file, "r")
or exit 0;
---
xdg-screensaver seems to try to support the case where xprop is not installed
(It checks for xprop, and various functions bail out early if it's not
available). However with Gnome 3 (and perhaps with other environments) it seems
it's a hard requirement, and as such the user should be warned if it's missing.
I believe that affects numerous users as there have been several reports of
xdg-screensaver failing with Gnome in various projects:
* <a href="https://bugzilla.redhat.com/show_bug.cgi?id=665918">https://bugzilla.redhat.com/show_bug.cgi?id=665918</a>
* <a href="https://trac.videolan.org/vlc/ticket/4739">https://trac.videolan.org/vlc/ticket/4739</a>
* <a href="https://forum.videolan.org/viewtopic.php?t=127389">https://forum.videolan.org/viewtopic.php?t=127389</a></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>