basedir-spec issue

Laszlo Peter Laszlo.Peter at Sun.COM
Fri May 7 12:35:42 EEST 2004


hi,

background: http://bugzilla.gnome.org/show_bug.cgi?id=141901

problem: if GNOME (or KDE or whatever) is built with a $prefix
different from /usr or /usr/local, data files in $datadir won't be
found unless you set XDG_DATA_DIRS, which is kinda broken.
I understand that this is expected to be platform and desktop
independent and that's good, but if I build my entire stack
so that it lives in a different prefix, I expect it to find
stuff in $datadir as well as in /usr/local/share and /usr/share
so that it Just Works [tm].

the basedir-spec currently says:

"If $XDG_DATA_DIRS is either not set or empty, a value equal to
/usr/local/share/:/usr/share/ should be used."

but later it also says:

"... $XDG_DATA_DIRS/subdir/filename ... implies that: 
 -  Such file should be installed to $datadir/subdir/filename with
    $datadir defaulting to /usr/share."

which seems like a contradiction. I suggest changing the former to

"If $XDG_DATA_DIRS is either not set or empty, a value equal to
/usr/local/share/:/usr/share/:$(datadir) should be used."

Of course the same applies to $XDG_CONFIG_DIRS.

What do people think?

Cheers,

Laca





More information about the xdg mailing list