summaryrefslogtreecommitdiff
path: root/.config/login.d/90_symlink_xdg_runtime_dir.sh
blob: bc6109d6e4c0a37b3a37c3d13139b60608bf317a (plain)
1
2
3
4
5
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