Bug 7157

Summary: xdg-menu from CVS requires DISPLAY-Variable set
Product: Portland Reporter: Waldo Bastian <bastian>
Component: xdg-utilsAssignee: Portland Integration Project <portland>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 7011    

Description Waldo Bastian 2006-06-08 12:38:44 UTC
Marcus Grassinger reported:
I was testing the xdg-Technology-Preview for adding a menu-entry and 
now switched to the current cvs-version.
In the CVS-version of xdg-menu, when my DESKTOP-Variable is unset or 
when I'm not permitted to connect to X, then the script fails with 
the following message when calling `xprop':

-------------
sles9dsk:/usr/local/src/xdg-utils-TP/cvsscripts/scripts # ./xdg-menu 
install --system --vendor shinythings ../../webmirror.desktop
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xprop:  unable to open display ':0.0'
[ ... usage-options ... ]
--------------

Since the xdg-menu-Script is sometimes invoked by an administrator 
without X, this seems to be not very practical.
What do you guys think about that behaviour?

I'm using Suse EnterpriseServer9 Patchlevel 3 for testing-purposes.
Comment 1 Waldo Bastian 2006-06-08 12:41:49 UTC
None of the xdg-utils scripts should require interaction with the X server for 
installation tasks. The documentation must be updated to indicate which 
commands must be run from within an X session and which can be used outside of 
an X session.
Comment 2 Waldo Bastian 2006-06-09 17:47:08 UTC
Fixed for beta1 

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.