A working, but less elegant solution:
kill $_LXSESSION_PID
Try it yourself and have fun!
Remember to save your documents before trying this.

On Tue, Sep 20, 2011 at 7:12 PM, Alkis Georgopoulos <alkisg@gmail.com> wrote:
Hi, I was looking for a method to logout from LXDE without getting a
confirmation dialog, but I couldn't find any.

Here are the equivalents of some other DEs:
# Gnome
dbus-send --session --type=method_call --print-reply --reply-timeout=2000 \
 --dest=org.gnome.SessionManager /org/gnome/SessionManager \
 org.gnome.SessionManager.Logout uint32:1 >$stdout 2>&1 && return

# KDE
dbus-send --session --type=method_call --print-reply --reply-timeout=2000 \
 --dest=org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout \
 int32:0 int32:0 int32:0 >$stdout 2>&1 && return

# XFCE
xfce4-session-logout -l >$stdout 2>&1 && return

Could someone tell me the LXDE equivalent?

Please Cc me in the reply, as I'm not in the list.

Thank you.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list