summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-09-24 13:24:08 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-09-24 13:24:08 -0400
commit1557b290b98286d8c44ea066b64cc0910eecc0f7 (patch)
treed4ab19aaffac3bc0ef27fb89820288459f2c37c3 /.profile
parentce72763de93a1cd6e607d570b0f64c3afdf8e634 (diff)
.profile: only set java.io.tmpdir if $TMPDIR is set
Diffstat (limited to '.profile')
-rw-r--r--.profile4
1 files changed, 3 insertions, 1 deletions
diff --git a/.profile b/.profile
index c2fbf49..2e2e1d0 100644
--- a/.profile
+++ b/.profile
@@ -42,7 +42,9 @@ _JAVA_OPTIONS=''
_JAVA_OPTIONS+=' -Dawt.useSystemAAFontSettings=on'
_JAVA_OPTIONS+=' -Dswing.aatext=true'
_JAVA_OPTIONS+=' -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
-_JAVA_OPTIONS+=" -Djava.io.tmpdir=$TMPDIR"
+if [ -n "$TMPDIR" ]; then
+ _JAVA_OPTIONS+=" -Djava.io.tmpdir=$TMPDIR"
+fi
export _JAVA_OPTIONS
# ALSA