I just wrote my first python application and I need it to log the user out. Python can issue OS commands, but I can't find one that does this... I've tried "gnome-session-save --kill" but that brings up a "Log Out of Session" dialog. I need something that kills the session and requires no further confirmation from the user.
I've also tried "killall gnome-session", but it returns "no process killed". Any advice?