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

- use ~/.local/share/byobu as BYOBU_CONFIG_DIR, if it happens to exist
This commit is contained in:
Dustin Kirkland 2011-12-08 11:06:44 -06:00
commit c242187499
2 changed files with 6 additions and 1 deletions

2
debian/changelog vendored
View file

@ -23,6 +23,8 @@ byobu (4.53) unreleased; urgency=low
correct BYOBU_PREFIX value and store it in ~/.byoburc correct BYOBU_PREFIX value and store it in ~/.byoburc
- ~/.byoburc is now read by all usr/bin/* in order to find the - ~/.byoburc is now read by all usr/bin/* in order to find the
correct prefix correct prefix
* usr/lib/byobu/include/dirs: LP: #780081
- use ~/.local/share/byobu as BYOBU_CONFIG_DIR, if it happens to exist
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 05 Dec 2011 08:59:08 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 05 Dec 2011 08:59:08 -0600

View file

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