RaspberryPi: LxSession confused by nondesktop autostart file

The standard session manager used by LXDE - http://wiki.lxde.org/en/LXSession
Locked
SteveDee
Posts: 4
Joined: Mon Oct 06, 2014 5:06 am

RaspberryPi: LxSession confused by nondesktop autostart file

Post 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.
Locked