summaryrefslogtreecommitdiffstats
path: root/bin
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>2021-08-22 10:20:35 (EDT)
commitd1ba3d043f6146cfe82365b271f7be79e6145712 (patch)
treeafd4bccc21c6c73bb05b7a73b1298180e64b77be /bin
parenta081ad2bec7ee2a491ed3ab87883a690022f9e3a (diff)
downloadfluxbox-d1ba3d043f6146cfe82365b271f7be79e6145712.zip
fluxbox-d1ba3d043f6146cfe82365b271f7be79e6145712.tar.gz
fluxbox-d1ba3d043f6146cfe82365b271f7be79e6145712.tar.bz2
bin/xsession: Ensure DISPLAY is set
Diffstat (limited to 'bin')
-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}"