Bug 41144 - xdg-screensaver syntax error if DISPLAY isn't set and command is run on a console
Summary: xdg-screensaver syntax error if DISPLAY isn't set and command is run on a con...
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL: XDG_CURRENT_DESKTOP
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 02:51 UTC by Toralf Förster
Modified: 2012-08-09 13:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Toralf Förster 2011-09-23 02:51:27 UTC
Under Gentoo Linux I get :

$> unset DISPLAY xdg-screensaver status
xset:  unable to open display ""
/usr/bin/xdg-screensaver: line 720: [: : integer expression expected
/usr/bin/xdg-screensaver: line 722: [: : integer expression expected
ERROR: xset q did not report the screensaver timeout
Comment 1 Rex Dieter 2011-09-28 07:04:16 UTC
oh boy, indeed there's a big assumption in xdg-screensaver that this is all operating inside an X server (and that $DISPLAY is defined).

I'll have to think about how best to handle this case.


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.