From 1557b290b98286d8c44ea066b64cc0910eecc0f7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 24 Sep 2012 13:24:08 -0400 Subject: .profile: only set java.io.tmpdir if $TMPDIR is set --- .profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3