diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-24 13:24:08 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-09-24 13:24:08 -0400 |
commit | 1557b290b98286d8c44ea066b64cc0910eecc0f7 (patch) | |
tree | d4ab19aaffac3bc0ef27fb89820288459f2c37c3 | |
parent | ce72763de93a1cd6e607d570b0f64c3afdf8e634 (diff) |
.profile: only set java.io.tmpdir if $TMPDIR is set
-rw-r--r-- | .profile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |