* usr/lib/byobu/include/dirs: LP: #1025998

- more XDG annoyances
  - use $HOME/.config/byobu as BYOBU_CONFIG_DIR if it exists
This commit is contained in:
Dustin Kirkland 2013-01-14 14:54:08 -06:00
commit e5138f2628
2 changed files with 7 additions and 1 deletions

3
debian/changelog vendored
View file

@ -7,6 +7,9 @@ byobu (5.27) unreleased; urgency=low
* usr/bin/byobu: LP: #1026595
- fix readlink detection; we were using BYOBU_TEST before it was defined
- instead, try to greadlink -f .; operationally the same
* usr/lib/byobu/include/dirs: LP: #1025998
- more XDG annoyances
- use $HOME/.config/byobu as BYOBU_CONFIG_DIR if it exists
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 10 Jan 2013 16:36:23 -0600

View file

@ -30,8 +30,11 @@ if [ -d "$BYOBU_CONFIG_DIR" ]; then
elif [ -d "$XDG_CONFIG_HOME" ]; then
# Use XDG, as some users insist on such nonsense :-)
export BYOBU_CONFIG_DIR="$XDG_CONFIG_HOME/$PKG"
elif [ -d "$HOME/.config/$PKG" ]; then
# Use XDG config directory, if it exists
export BYOBU_CONFIG_DIR="$HOME/.config/$PKG"
elif [ -d "$HOME/.local/share/$PKG" ]; then
# Use XDG common directory, if it exists
# Use XDG local directory, if it exists
export BYOBU_CONFIG_DIR="$HOME/.local/share/$PKG"
else
# And to default to good old classic config dir location!