Warn / fail if xdg-screensaver cannot find xprop
Submitted by nic..@..min.me
Assigned to Portland Bugs
Description
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.
sleep(10);
my status = new IO::File(
screensaver_file, "r")
or exit 0;
while (1) {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:
- https://bugzilla.redhat.com/show_bug.cgi?id=665918
- https://trac.videolan.org/vlc/ticket/4739
- https://forum.videolan.org/viewtopic.php?t=127389
Version: 1.1.0