From: Alkis G. <al...@gm...> - 2011-09-20 15:10:47
|
Στις 20-09-2011, ημέρα Τρι, και ώρα 22:57 +0800, ο/η PCMan έγραψε: > 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 <al...@gm...> > wrote: > Hi, I was looking for a method to logout from LXDE without > getting a confirmation dialog, but I couldn't find any. Hi PCMan, thank you for your answer, this is for a new remote control software we're developing, in which the teacher will be remotely logging off students' computers. So it's not possible for the teacher to save the students' documents before issuing that command. Ideally the students would be prompted if (and only if) they had unsaved work. Gnome and KDE use inhibitors to achieve this, and the dbus commands I mentioned trigger those if there's unsaved work. Well anyway `pkill lxsession` will have to do, I couldn't find some better method for LXDE. Thanks again! |