Missing "/" in XDG_DATA_DIRS variable running Xubuntu / XFCE

Bug #209476 reported by Peter Clifton
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Unassigned
xfce4-utils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi
In a ubuntu 7.10 32bit or amd64 bit architecture I find this problem:
If I with synaptic install on my system Xubuntu and I digit:
icanepa@JtLaptop1:~$ echo $XDG_DATA_DIRS
I find:
etc/xdg/xubuntu:/usr/local/share/:/usr/share/:/usr/share/gdm/:/usr/share
icanepa@JtLaptop1:~$
instead of /etc/xdg/xubuntu:/usr/local/share/:/usr/share/:/usr/share/gdm/:/usr/share
(missing first slash)

This, for example, make impossible to install some program that use it, like NetBeans 6.1.
NetBeans fixed the problem in a new buid with a patch that put a slash if there insn't.

I try even in ubuntu 8.04 with a post installation of Xubuntu and I find the some problem with XDG_DATA_DIRS.

I'dont' know if I do something wrong or if it is a little problem of Xubuntu or XFCE.

Thanks
Italo Canepa

Revision history for this message
Peter Clifton (pcjc2) wrote :

not a bug in launchpad, just a bug created from a mis-filed answer request

Changed in launchpad:
status: New → Invalid
Revision history for this message
Peter Clifton (pcjc2) wrote :

the patch: 00_xdg_data_dirs.patch

touches the line which may be the problem:

diff -Nur xfce4-utils-4.4.1/scripts/startxfce4.in xfce4-utils-4.4.1.new/scripts/startxfce4.in
--- xfce4-utils-4.4.1/scripts/startxfce4.in 2007-04-02 07:34:54.000000000 +0200
+++ xfce4-utils-4.4.1.new/scripts/startxfce4.in 2007-10-04 23:16:56.000000000 +0200
@@ -28,9 +28,9 @@

 if test "x$XDG_DATA_DIRS" = "x"
 then
- XDG_DATA_DIRS="usr/local/share:/usr/share:/@datadir@"
+ XDG_DATA_DIRS="etc/xdg/xubuntu:usr/local/share:/usr/share"
 else
- XDG_DATA_DIRS="$XDG_DATA_DIRS:@datadir@"
+ XDG_DATA_DIRS="etc/xdg/xubuntu:$XDG_DATA_DIRS:@datadir@"
 fi
 export XDG_DATA_DIRS

OP reports that the missing "/" at the start of the variable is causing grief. Looks like an upstream bug on the first removed line, which has been propagated further by the Ubuntu changes.

Revision history for this message
Peter Clifton (pcjc2) wrote : Re: [Bug 209476] Re: Missing "/" in XDG_DATA_DIRS variable running Xubuntu / XFCE

Link to upstream fix:

http://svn.xfce.org/index.cgi/xfce/revision/?rev=25536

--
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

6:03 mrpouit@pegasus ~% echo $XDG_DATA_DIRS
/etc/xdg/xubuntu:/usr/local/share/:/usr/share/:/usr/share/gdm/:/usr/share

Fixed in hardy.

Changed in xfce4-utils:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.