Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. 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#1447 - typos in xorg.sh

Attached to Project: Arch Linux
Opened by Mircea Bardac (IceRAM) - Tuesday, 14 September 2004, 21:31 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To No-one
Architecture not specified
Severity Critical
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Remove the exclamation marks from the ifs in /etc/profile.d/xorg.sh

Resulting file should be:
<code>
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache

if [ -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=/usr/share
else
export XDG_DATA_DIRS=/usr/share:$XDG_DATA_DIRS
fi

if [ -z $XDG_CONFIG_DIRS ]; then
export XDG_CONFIG_DIRS=/etc/xdg
else
export XDG_CONFIG_DIRS=/etc/xdg:$XDG_DATA_DIRS
fi
</code>

Sorry for not spotting this earlier.
This task depends upon

Closed by  Judd Vinet (judd)
Thursday, 16 September 2004, 19:27 GMT
Reason for closing:  Fixed
Comment by Ari (iamtheari) - Wednesday, 15 September 2004, 01:46 GMT
if [ -z $XDG_CONFIG_DIRS ]; then
export XDG_CONFIG_DIRS=/etc/xdg
else
export XDG_CONFIG_DIRS=/etc/xdg:$XDG_DATA_DIRS
fi
---
Should that last line be ...:$XDG_CONFIG_DIRS ?
Comment by Ari (iamtheari) - Wednesday, 15 September 2004, 02:20 GMT
I managed to get this fixed. See my post in the forums at:
http://bbs.archlinux.org/viewtopic.php?t=6743&postdays=0&postorder=asc&start=30
Comment by Judd Vinet (judd) - Wednesday, 15 September 2004, 16:19 GMT
This is the version going into -3:

export XDG_DATA_HOME=$HOME/.local/share
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache

if [ -z $XDG_DATA_DIRS ]; then
export XDG_DATA_DIRS=/usr/share
else
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share
fi

if [ -z $XDG_CONFIG_DIRS ]; then
export XDG_CONFIG_DIRS=/etc/xdg
else
export XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/xdg
fi
Comment by Mircea Bardac (IceRAM) - Wednesday, 15 September 2004, 16:26 GMT
According to the specs, the order of the paths listed in *_DIRS matters.
Are you sure /usr/share & /etc/xdg should have the smalled priorities?

(I have nothing against it as long as it works - theoretically and practially)

Loading...