diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 14:34:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-13 15:39:51 -0400 |
commit | 969410c5af909199724973b8851fcb6bf19eaba2 (patch) | |
tree | 14d7e75ecebda9439a4a96b647e13ecb2d66622a /.config/X11/clientrc | |
parent | c0a9c2902e60cc980343a65f5519e7c9e2dcd081 (diff) |
clean up XDG_RUNTIME_DIR handling
Diffstat (limited to '.config/X11/clientrc')
-rwxr-xr-x | .config/X11/clientrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.config/X11/clientrc b/.config/X11/clientrc index 4773ea4..2c965da 100755 --- a/.config/X11/clientrc +++ b/.config/X11/clientrc @@ -17,6 +17,7 @@ if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi +[ -n "$XDG_RUNTIME_DIR" ] || exit 1 trap "rm -f $(printf '%q' "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}")" EXIT mkfifo "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}" |