#!/bin/sh
# Logs out a user. 

# That's just for the case where the teacher asked a reboot, the user cancelled
# it (unsaved work), and then the teacher asked for a logout instead.
# In that case, reset the xprop so that a simple logout is performed.
xprop -root -remove LTSP_LOGOUT_ACTION

# Gnome
dbus-send --session --dest=org.gnome.SessionManager --type=method_call --print-reply --reply-timeout=2000 /org/gnome/SessionManager org.gnome.SessionManager.Logout uint32:1

# TODO: KDE and other DEs
