~ltsp-upstream/ltsp/ltsp-trunk

« back to all changes in this revision

Viewing changes to client/share/ldm/rc.d/X99-ltsp-logout-action

  • Committer: Vagrant Cascadian
  • Date: 2014-09-23 20:33:10 UTC
  • Revision ID: vagrant@debian.org-20140923203310-n2s1xhqag2rzryay
Fix use of SHUTDOWN_TIME with LDM to use ltsp-logout-action instead.
https://bugs.launchpad.net/ltsp/+bug/604908

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Also check with xprop, this way localapps are not required to be enabled.
2
2
# Don't reboot now to avoid ghost processes, store the result in a file
3
3
# to be processed by screen-session.d/XS00-halt-reboot.
4
 
xprop -root -notype LTSP_LOGOUT_ACTION | sed -ne 's/^LTSP_LOGOUT_ACTION = "\(.*\)"/\1/p' > /var/run/ltsp-logout-action || true
5
 
xprop -root -remove LTSP_LOGOUT_ACTION
 
4
if [ ! -f /var/run/ltsp-logout-action ]; then
 
5
   xprop -root -notype LTSP_LOGOUT_ACTION | sed -ne 's/^LTSP_LOGOUT_ACTION = "\(.*\)"/\1/p' > /var/run/ltsp-logout-action || true
 
6
   xprop -root -remove LTSP_LOGOUT_ACTION
 
7
fi