[BLFS Trac] #2172: XDG Base Directory Issues

Dan Nicholson dbn.lists at gmail.com
Thu Jan 25 22:47:05 PST 2007


On 1/25/07, Luca <liliana.perossa at fastwebnet.it> wrote:
>
> In current BLFS-SVN book (looking at now) it is said to install
> libxfce4util with "./configure --prefix=/usr"; installed XFce-4.2.3.2,
> XFce-4.3beta and XFce-4.4 as per the book with some minor adjustments;
> in /etc/xdg hierarchy we find {autostart, menus,Thunar, xfce,
> xfce4-session} dirs and ksysguarddrc file. To make the session start I
> needed to install as per the book and then add the XDG* export (since
> XDG_CONFIG_DIRS is exported by default to /usr/share)

That's a bug in the book. We should not be setting XDG_CONFIG_DIRS to
/usr/share. This is part of the problem.

> installing
> libxfce4util with "--sysconfdir=/etc" - tried both ways.

What happens when you unset XDG_CONFIG_DIRS with libxfce4util
configured with --sysconfdir=/etc?

> Actually in my profile the XDG* environment is set as following:
>
> XDG_DATA_DIRS=/opt/gnome-2.14.2/share:/opt-kde-3.5.2/share:/opt/kde-3.5.4/share::/opt/kde-3.5.5/share:/opt/gnome-2.16.0/share:/opt/wine/share
> XDG_CONFIG_DIRS=/etc/gnome/2.14.2/xdg:/etc/kde/xdg:/etc/gnome/2.16.0/xdg
> export XDG_DATA_DIRS XDG_CONFIG_DIRS
>
>
> which worked with both older versions and newer (notice the fact the I
> exported no-more /etc/xdg).

Which, I think, is because you've configured libxfce4util with
--sysconfdir=/etc. If you hadn't and you didn't have /etc/xdg in
XDG_CONFIG_DIRS, then I think xfce would be broken again.

According to the author of the spec, you should always add the default
directories to the environment variables if you have to set them. See
these links:

http://bugzilla.gnome.org/show_bug.cgi?id=328664#c6
http://lists.freedesktop.org/archives/xdg/2006-January/007669.html

--
Dan



More information about the blfs-book mailing list