You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
303 B
11 lines
303 B
{% calculate chmod='755' %}
|
|
#!/bin/sh
|
|
# Xlogout - run as root after user logout
|
|
|
|
{% if pkg('sys-apps/calculate-utils[desktop]') %}
|
|
VT="vt$(( ${DISPLAY#:} + 7 ))"
|
|
XAUTHORITY=$(ps ax | sed -nr "s/.*usr\/bin\/X.*-auth (\S+).*$VT.*/\1/p")
|
|
export XAUTHORITY
|
|
/usr/share/calculate/xdm/xdm --logout
|
|
{% endif %}
|