Maybe I can help you out a bit.
ahaz86 wrote:Hello, I have read through many posts on here about getting autostart working on the pi 2 running Jessie.
1. Edited: sudo nano /etc/xdg/lxsession/LXDE-pi/autostart to include lxterminal
2. Edited: sudo nano /etc/xdg/lxsession/LXDE/autostart to include lxterminal
3. Attempted to edit: sudo nano ~/.config/lxsession/LXDE/autostart
The path didnt exist so I created each directory and the file but still no luck.
1. That is the global autostart file, and works for all users... unless they have a user autostart. If the user has an autostart file the global one is ignored and the personal autostart is used. User settings are applied last and take precedence over global settings. Jessie creates a user's autostart file during the install, so changing settings in the global file no longer have any effect.
2. That is the "old" location, the new location uses "/LXDE-pi/". The "/LXDE/" directory may exist, but it will be ignored.
3. That attempt is close, but should have been "/LXDE-pi/" rather than "/LXDE/". Before Raspbian started including the users autostart (and switched from LXDE to LXDE-pi) you had to create your own "/lxsession/LXDE/autostart" to override the one at "/etc/xdg/". If you had used "
nano ~/.config/lxsession/LXDE-pi/autostart" you would have been editing the correct autostart, but using "/LXDE/" it created a new file instead, but of course it won't use it.
To add to or edit your user's autostart:
Code: Select all
nano ~/.config/lxsession/LXDE-pi/autostart
That file belongs to the user so don't use "sudo" to edit it.