Acho que você pode simplesmente executar esse comando para fazer logout.
$ pkill -SIGTERM -f lxsession
Além disso, se você passar pela página do LXDE no GitHub, há uma seção no final deste URL: link .
Trecho==== Log out ===
Simply executing this command:
lxsession-logout
This will give you a good-looking logout dialog. If gdm is installed, lxsession can do shutdown/reboot/suspend via gdm. (These options are not available if gdm is not running.)
If you want to customize this logout box further, try this:
lxsession-logout --prompt "Your custom message" --banner "Your logo" \ --side "left | top | right | bottom (The position of the logo)"
We create a script
/usr/bin/lxde-logout
to do this:#!/bin/sh /usr/bin/lxsession-logout --banner \ "/usr/share/lxde/images/logout-banner.png" --side top
You can put this logout script in the menu of your window manager or desktop panel. Then, you can logout via clicking from the menu.