Raspberry Pi Autostart with LXDE

Posted by {"display_name"=>"greg", "login"=>"greg", "email"=>"greg@udon.org", "url"=>""} on November 02, 2015 · 1 min read

The Raspberry Pi LXDE autostart configuration file can be in different places depending on the version of Raspbian you are running.

LXDE

Raspbian uses the lightweight LXDE X11 graphical environment by default. LXSession manages sessions and the autostart process as part of LXDE.

The LXSession autostart config file including it's location are discussed here and the configuration file is /etc/xdg/lxession/<profile>/autostart. So where's <profile> on your Raspberry Pi?

Profile Name

The default profile name is LXDE and the profile can be overridden by passing a parameter to lxsession. To see the profile setting on your system enter the command:

sudo ps -ef | grep lxsession

If you see the -s parameter then the default profile name is being overridden by the value that follows. In most cases this is LXDE-pi.

LXSession Logfile

The LXSession documentation refers to logfiles but not where they're located. Here are possible locations:

~/.cache/lxsession/LXDE-pi/run.log
~/.config/lxsession/LXDE-pi/
/var/log/Xorg.0.log