Bug 41144

Summary: xdg-screensaver syntax error if DISPLAY isn't set and command is run on a console
Product: Portland Reporter: Toralf Förster <toralf.foerster>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
URL: XDG_CURRENT_DESKTOP
Whiteboard:
i915 platform: i915 features:

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.