linux mistake after change autostart

Started by ebelouet, July 09, 2014, 12:06:06 AM

Previous topic - Next topic

ebelouet

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

martinayotte

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