Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: ebelouet on July 09, 2014, 12:06:06 AM

Title: linux mistake after change autostart
Post by: ebelouet on July 09, 2014, 12:06:06 AM
HI,

why in Linux debian when I add @python /home/eric/eric.py on this file /etc/xdg/lxsession/LXDE/autostart,
I have nothing and I lost windows ?

Sincerely
Eric
Title: Re: linux mistake after change autostart
Post by: martinayotte on July 09, 2014, 04:25:31 PM
If you wish to start your python script, don't place it directly in /etc/xdg/lxsession/LXDE/autostart, but create a desktop file instead which look like the following :

[Desktop Entry]
Encoding=en_US.UTF-8
Type=Application
Terminal=false
Name=MyPythonApp
Comment=MyPythonApp
Exec=/usr/bin/python /home/eric/eric.py