Bug 7157 - xdg-menu from CVS requires DISPLAY-Variable set
Summary: xdg-menu from CVS requires DISPLAY-Variable set
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Portland Integration Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 7011
  Show dependency treegraph
 
Reported: 2006-06-08 12:38 UTC by Waldo Bastian
Modified: 2006-06-09 17:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.