Hi, /usr/bin/startxfce4 seems to override existing xdg data directories by prepending @_datadir_@ to it (see line 37 of scripts/startxfce4.in). According to the xdg spec (<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>), the first directory in the list is the most important one, so @_datadir_@ became the most important one, and any existing one, set, e.g., by the distributor is "overridden". Thus, I guess that: XDG_DATA_DIRS="@_datadir_@:$XDG_DATA_DIRS" should be replaced by XDG_DATA_DIRS="$XDG_DATA_DIRS:@_datadir_@" Thanks!
Fixed in 40161f7.
Some care should be taken if XDG_DATA_DIR is empty, because that would give: XDG_DATA_DIR=:@_datadir_@ and the empty string might not be a good thing to have there (remember the LD_LIBRARY_PATH security issues)
That should be covered by: if test "x$XDG_DATA_DIRS" = "x" right?