summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-06-15 00:59:37 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-06-15 00:59:37 (EDT)
commite6efa0fcc929e88f038d0a543310681700d0b4d7 (patch)
treeb224039285d88c440443864db079c59ea53cdd02
parent4b3cc70554cd45aba2c4b3cee6a36a7e64512d1c (diff)
downloadfluxbox-e6efa0fcc929e88f038d0a543310681700d0b4d7.zip
fluxbox-e6efa0fcc929e88f038d0a543310681700d0b4d7.tar.gz
fluxbox-e6efa0fcc929e88f038d0a543310681700d0b4d7.tar.bz2
bin/xsession: Ensure DISPLAY is set
-rwxr-xr-xbin/xsession2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/xsession b/bin/xsession
index 4166354..f1547ce 100755
--- a/bin/xsession
+++ b/bin/xsession
@@ -104,6 +104,8 @@ main()
action="${1}"
shift 1
+ read -r DISPLAY 0<~/.xdisplay
+
case "${action}" in
'logout' | 'shutdown' | 'reboot' | 's2mem' | 's2disk')
"do_${action}"