summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile19
1 files changed, 11 insertions, 8 deletions
diff --git a/.profile b/.profile
index d2a1e6c..f394fbd 100644
--- a/.profile
+++ b/.profile
@@ -25,13 +25,6 @@ done
# Settings ###########################################################
-# TMPDIR
-if [ -d "$HOME/tmp" ]; then
- export TMPDIR="$HOME/tmp"
-elif [ -d "$HOME/.prefix/tmp" ]; then
- export TMPDIR="$HOME/.prefix/tmp"
-fi
-
# Text editor
if [ -f "$HOME/.selected_editor" ]; then
. "$HOME/.selected_editor"
@@ -49,6 +42,7 @@ _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"
export _JAVA_OPTIONS
# ALSA
@@ -57,7 +51,16 @@ if [ -x "`which alsactl 2>/dev/null`" ]; then
fi
# X11
-export XAUTHORITY=$HOME/.Xauthority
+if [ -z "$XAUTHORITY" ]; then
+ export XAUTHORITY=$HOME/.Xauthority
+fi
+
+# D-Bus
+if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
+ eval `dbus-launch`
+ export DBUS_SESSION_BUS_ADDRESS
+ export DBUS_SESSION_BUS_PID
+fi
# Start background programs ##########################################
if [ -f "$HOME/.login-daemons" ]; then