* usr/bin/byobu-config.in: LP: #1316050

* usr/lib/byobu/include/dirs.in: LP: #1346869
  - be little smarter about detecting a usable /dev/shm
This commit is contained in:
Dustin Kirkland 2014-07-26 15:16:56 -05:00
commit 8e13767b8d
2 changed files with 5 additions and 2 deletions

4
debian/changelog vendored
View file

@ -1,8 +1,10 @@
byobu (5.83) unreleased; urgency=medium
[ Dustin Kirkland ]
* usr/bin/byobu-config.in:
* usr/bin/byobu-config.in: LP: #1316050
- hard code LANG=C before launching byobu-config
* usr/lib/byobu/include/dirs.in: LP: #1346869
- be little smarter about detecting a usable /dev/shm
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 22 Jul 2014 07:21:56 -0700

View file

@ -59,7 +59,8 @@ if [ -w /dev/shm ]; then
if [ ! -d "$BYOBU_RUN_DIR" ] || [ ! -O "$BYOBU_RUN_DIR" ]; then
export BYOBU_RUN_DIR=$(mktemp -d /dev/shm/$PKG-$USER-XXXXXXXX)
fi
else
fi
if [ ! -d "$BYOBU_RUN_DIR" ] || [ ! -O "$BYOBU_RUN_DIR" ] || [ ! -w "$BYOBU_RUN_DIR" ]; then
# For distros that don't have a /dev/shm, use local disk
if [ -d "$XDG_CACHE_HOME" ]; then
# Use XDG, as some users insist on such nonsense :-)