This is for users who are unfamiliar with the default session manager for LXDE, which happens to be LXSession. The session manager is used to restore previously running applications when you login to the desktop.
Session Manager Details
Alternatively you can start a new default session with only your auto-start applications running on startup. The session manager will remember the state and location of previously opened windows.
Another version of the LXDE session manager is available called LXSession Lite. This is a simple light version of the original with no X session management support.
This session manager for LXDE does have several configuration options. Users can use LXSession-Edit to configure the session manager. Here are some of the default storage locations for LXSession configuration files.
Main Config Files
System wide configuration files are stored in the following location.
Default Configuration File
Default configuration files are stored in the following directory.
Other Config Files
The file in the next directory contains a sequence of global commands which are executed when you start a session.
Global Auto-Start File
The files in the following directory will let you store other commands that will be executed by the specified session.
Here are some of the commands and options that will help you interact with the LXDE session manager. The standard syntax for LXSession is shown below.
$ lxsession -o
LXSession Display Name
Using the display name option you can set a name for the display as seen below.
$ lxsession -d name
LXSession Session Profile Name
The next option will let you specify a name for the desktop session profile.
$ lxsession -s name
LXSession Desktop Environment Name
Set the name for a desktop environment with the option below.
$ lxsession -e name
Use the next option to reload the configurations for the XSettings daemon.
$ lxsession -r
This option will disable support for the XSettings daemon.
$ lxsession -n
Disable Auto-Start Applications
Next you can disable all of your auto-start applications with this option.
$ lxsession -a
LXSession also offers a convenient dialog box that is displayed when you want to log out of your system. You can even customize the LXDE desktop logout dialog box. Here are some options to help you interact with the LXSession-logout tool from the command line.
LXSession Logout Options
LXDE users can launch the logout dialog with the commands below. Use this window to logout, shutdown, or reboot the system. Use the following options and actions to interact with LXSession Logout from the command line. First is the standard syntax for the LXSession-logout tool.
$ lxsession-logout --option
Custom Logout Message
Use the next option to customize your LXSession-Logout message.
$ lxsession-logout --prompt message
Custom Logout Logo
The next option will let you set a logo for your logout dialog.
$ lxsession-logout --banner /logo.file
This option will change the position of your logo inside the LXDE logout dialog. The following positions are available, top, bottom, left, or right.
$ lxsession-logout --side position
What Links Here