From b993c98519acae4bdf3467039f8d9bb3f9d4518b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Mar 2016 23:26:26 -0500 Subject: Implement session management (log out) --- (limited to '.xinitrc') diff --git a/.xinitrc b/.xinitrc index 7dbe5da..e616e8e 100644 --- a/.xinitrc +++ b/.xinitrc @@ -2,5 +2,13 @@ startfluxbox -# Keep the X server running forever -exec tail -f /dev/null +rm -f ~/.xsessionmanage +mkfifo -m 0600 ~/.xsessionmanage +while read action; do + case "${action}" in + 'quit') + break + ;; + esac +done <~/.xsessionmanage +rm -f ~/.xsessionmanage -- cgit v0.9.1