Small problem with XDG_DATA_DIRS and XDG_CONFIG_DIRS
behdad at cs.toronto.edu
Sat Mar 19 02:18:53 EET 2005
The current spec by falling back on some const values when the
XDG_*_DIRS are not set or are empty, prevents one from prepending
(or appending) directories to them easily. In other words, for
example, when I want to compile some applications under /opt, I
would put something like this in my .bashrc:
export CPPFLAGS="-I$PREFIX/include $CPPFLAGS"
export CFLAGS="-I$PREFIX/include $CFLAGS"
export CXXFLAGS="-I$PREFIX/include $CXXFLAGS"
export LDFLAGS="-L$PREFIX/lib $LDFLAGS"
export ACLOCAL_FLAGS="-I $PREFIX/share/aclocal $ACLOCAL_FLAGS"
export ACLOCAL_AMFLAGS="-I $PREFIX/share/aclocal $ACLOCAL_AMFLAGS"
But this can't be done with XDG_*_DIRS, since as soon as you set
it, you are losing the default values. So for a couple months
I've been doing:
And wondering why my menus are lost!
I can think of one solution, but it has its own problem: Treat
any empty component of the list as the default values. Then
for example "/opt/share:" means "/opt/share" followed by the
Perhaps not the biggest problem and not the best solution, but
worth discussion IMHO.
More information about the xdg