summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-02-02 12:45:12 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-02-02 12:50:49 -0500
commit28be8fb283a3f56521a8c8d98553ceae17513599 (patch)
tree11ef152d05914703896a5232f4f372aea5b144a4
parent98b992702f05cf652ec9417d10e248ed9de1ce80 (diff)
window manager: do better error handling round my semaphore
-rwxr-xr-x.config/X11/clientrc2
-rw-r--r--.config/systemd/user/wmii@.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/.config/X11/clientrc b/.config/X11/clientrc
index d18d714..cbcf07a 100755
--- a/.config/X11/clientrc
+++ b/.config/X11/clientrc
@@ -21,5 +21,5 @@ fi
wm=wmii
systemctl --user start "${wm}@${DISPLAY}.service"
mkfifo "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}"
+trap "rm $(printf %q "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}")" EXIT
cat "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}" >/dev/null
-rm "${XDG_RUNTIME_DIR}/x11-wm@${DISPLAY}"
diff --git a/.config/systemd/user/wmii@.service b/.config/systemd/user/wmii@.service
index 10fc4e9..12f585b 100644
--- a/.config/systemd/user/wmii@.service
+++ b/.config/systemd/user/wmii@.service
@@ -9,4 +9,4 @@ Restart=no
Environment=DISPLAY=%I
ExecStart=/usr/bin/bash -l -c /usr/bin/wmii
ExecStop=/usr/bin/wmiir xwrite /ctl Quit
-ExecStopPost=/usr/bin/bash -c ": > ${XDG_RUNTIME_DIR}/x11-wm@%I"
+ExecStopPost=/usr/bin/timeout .1 bash -c ": > ${XDG_RUNTIME_DIR}/x11-wm@%I"