Page 1 of 1

RaspberryPi: LxSession confused by nondesktop autostart file

Posted: Thu Oct 09, 2014 4:40 pm
by SteveDee
I was puzzled recently when I added a .desktop file (launcher) to /home/pi/.config/autostart and could not see it listed in "Desktop Sessions Settings" (lxsessions-edit). My x11VNC.desktop should have appeared in the "Automatically Started Applications" list, but it was not there.

The problem was due to a second file in the autostart folder. I had edited x11VNC.desktop using gEdit, a text editor which automatically creates a backup file, in this case: x11VNC.desktop~

Having non-desktop files in the autostart folder seems to confuse LxSession. Simply deleting the bogus file fixed the problem.