* usr/lib/byobu/.constants:

- should probably export those
This commit is contained in:
Dustin Kirkland 2011-06-29 00:35:52 +00:00
commit 5d287ebda8
2 changed files with 5 additions and 4 deletions

2
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Mon, 27 Jun 2011 14:14:17 +0000

View file

@ -19,10 +19,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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