* usr/lib/byobu/.dirs:

- fall back to the tmux tmpdir
This commit is contained in:
Dustin Kirkland 2011-08-20 12:16:18 -07:00
commit b4f4383812
2 changed files with 5 additions and 0 deletions

2
debian/changelog vendored
View file

@ -83,6 +83,8 @@ byobu (4.30) unreleased; urgency=low
- check exist status of session listing
* usr/lib/byobu/.dirs:
- fix stray directory creation
* usr/lib/byobu/.dirs:
- fall back to the tmux tmpdir
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500

View file

@ -44,6 +44,9 @@ if [ -d "$XDG_CACHE_HOME" ]; then
elif [ -d "$SOCKETDIR/S-$USER" ]; then
# But for FAR better performance, use a tmpfs if available
export BYOBU_RUN_DIR="$SOCKETDIR/S-$USER/$PKG"
elif [ -d "$(dirname $TMUX)" ]; then
# Or perhaps try the tmux tmpdir
export BYOBU_RUN_DIR="$(dirname $TMUX)/$PKG"
else
# But if not, we'll use a cache directory
export BYOBU_RUN_DIR="$HOME/.cache/$PKG"