diff --git a/debian/changelog b/debian/changelog index 217adf71..cdc7794b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -33,6 +33,8 @@ byobu (4.17) unreleased; urgency=low + BYOBU_CONFIG_DIR, which is typically $HOME/.byobu - this rework should more easily allow us to support users who's SOCKETDIR is not /var/run/screen, and XDG_USER_DIRS users + * usr/lib/byobu/.constants: + - should probably export those -- Dustin Kirkland Mon, 27 Jun 2011 14:14:17 +0000 diff --git a/usr/lib/byobu/.constants b/usr/lib/byobu/.constants index 22ad3579..b013fa29 100755 --- a/usr/lib/byobu/.constants +++ b/usr/lib/byobu/.constants @@ -19,10 +19,9 @@ # along with this program. If not, see . PKG="byobu" -BYOBU_VERSION="4.17" # Create and set the user configuration directory -BYOBU_CONFIG_DIR="$HOME/.$PKG" +export BYOBU_CONFIG_DIR="$HOME/.$PKG" mkdir -p "$BYOBU_CONFIG_DIR" # Grab the global, then local socket directory @@ -31,11 +30,11 @@ mkdir -p "$BYOBU_CONFIG_DIR" # Hopefully, we can make a runtime data directory in a tmpfs if mkdir -p "$SOCKETDIR/S-$USER/$PKG" 2>/dev/null; then - BYOBU_RUN_DIR="$SOCKETDIR/S-$USER/$PKG" + export BYOBU_RUN_DIR="$SOCKETDIR/S-$USER/$PKG" else # But if not, we'll use a cache direcotry mkdir -p "$HOME/.cache/$PKG" - BYOBU_RUN_DIR="$HOME/.cache/$PKG" + export BYOBU_RUN_DIR="$HOME/.cache/$PKG" fi # Some users build and install byobu themselves, rather than from a distro