summaryrefslogtreecommitdiff
path: root/.config/login.d/90_symlink_xdg_runtime_dir.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/login.d/90_symlink_xdg_runtime_dir.sh')
-rw-r--r--.config/login.d/90_symlink_xdg_runtime_dir.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/login.d/90_symlink_xdg_runtime_dir.sh b/.config/login.d/90_symlink_xdg_runtime_dir.sh
new file mode 100644
index 0000000..bc6109d
--- /dev/null
+++ b/.config/login.d/90_symlink_xdg_runtime_dir.sh
@@ -0,0 +1,6 @@
+# This is really only needed for ssh ControlPath; as I don't have a
+# way to communicate XDG_RUNTIME_DIR
+if [ -n "$XDG_RUNTIME_DIR" ]; then
+ mkdir -p -- "$XDG_CACHE_HOME/xdg-runtime-dir"
+ ln -sfT -- "$XDG_RUNTIME_DIR" "$XDG_CACHE_HOME/xdg-runtime-dir/$HOSTNAME"
+fi