summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-11 18:13:43 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-11 18:13:43 -0500
commit5409fbcd8040c601c781e283937eb11625d2d0c6 (patch)
treea43be3158e983a71050128e643acd9d7ac9569df
parent37ed11e213fff1abd4c18c7359252c6adeb0101b (diff)
use XDG_RUNTIME_DIR more
-rw-r--r--.config/login.sh5
-rw-r--r--.config/ssh/config2
2 files changed, 5 insertions, 2 deletions
diff --git a/.config/login.sh b/.config/login.sh
index 8f06b63..a74cd95 100644
--- a/.config/login.sh
+++ b/.config/login.sh
@@ -28,6 +28,7 @@ export TMPDIR="$HOME/tmp"
# XDG ################################################################
. "$HOME/.local/lib/xdg.sh"
+ln -sf -- "$XDG_RUNTIME_DIR/sessions" ~/.sessions
# Settings ###########################################################
@@ -70,7 +71,9 @@ export _JAVA_OPTIONS
# X11
if [[ -z $XAUTHORITY ]]; then
- export XAUTHORITY="$HOME/.Xauthority"
+ #export XAUTHORITY="$HOME/.Xauthority"
+ mkdir -p "${XDG_RUNTIME_DIR}/sessions"
+ export XAUTHORITY="${XDG_RUNTIME_DIR}/sessions/Xauthority"
fi
# D-Bus
diff --git a/.config/ssh/config b/.config/ssh/config
index d23340f..b6e53d6 100644
--- a/.config/ssh/config
+++ b/.config/ssh/config
@@ -1,7 +1,7 @@
Host *
Protocol 2
ControlMaster auto
- ControlPath ~/.ssh/master-%r@%h:%p
+ ControlPath ~/.sessions/ssh-%r@%h:%p
Compression yes
Host lore