summaryrefslogtreecommitdiffstats
path: root/bin/xsession
diff options
context:
space:
mode:
Diffstat (limited to 'bin/xsession')
-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}"