Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1372 - x.org enviroment variables

Attached to Project: Arch Linux
Opened by Mircea Bardac (IceRAM) - Thursday, 02 September 2004, 19:55 GMT
Last edited by Judd Vinet (judd) - Friday, 10 September 2004, 17:16 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

As I said in [1], it would be great if the xorg package would contain a profile.d file (named "xorg.sh") with:
<code>
export XDG_DATA_HOME=$XDG_DATA_HOME:/usr/share
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share
</code>
These settings will be shared through any Desktop Environment. Gnome does not work right with missing "/usr/share" (see [1]).

[1] http://bbs.archlinux.org/viewtopic.php?t=6454
This task depends upon

Closed by  Judd Vinet (judd)
Sunday, 12 September 2004, 19:47 GMT
Reason for closing:  Fixed
Comment by Mircea Bardac (IceRAM) - Thursday, 02 September 2004, 20:03 GMT
Note that the KDE packages (kdelibs 3.3.0) have a fix for some not-set XDG variables in the /etc/profile.d/kde.sh script

<code>
if [ ! -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$KDEDIR/share
else
export XDG_DATA_DIRS=/usr/share:$KDEDIR/share
fi
</code>

I think this currently covers the eventual problems in KDE.
Comment by Mircea Bardac (IceRAM) - Friday, 10 September 2004, 20:10 GMT
Now that I'm thinking, I believe the best content for xorg.sh would be

<code>
export XDG_DATA_HOME=/usr/share:$XDG_DATA_HOME
export XDG_DATA_DIRS=/usr/share:$XDG_DATA_DIRS
</code>

because some of the DEs might be sensitive to the order of paths in the env variable. As you see in my previous comment, KDE has that "if" which makes sure "/usr/share" is put first and "$KDEDIR/share" is always last.
Comment by Judd Vinet (judd) - Sunday, 12 September 2004, 19:47 GMT
Added for the next xorg build.

Loading...