Automatique start Python programm

Started by ebelouet, July 08, 2014, 07:00:12 PM

Previous topic - Next topic

ebelouet

HI,

I would like to know how starting Python software on DEbian with A20 board ?

Sincerely
Eric

kantal

For non graphics program, you can start it from /etc/rc.local on system start, but the outputs must write into a file or must be redirected.

prog &

ebelouet

thank but it's graphic python software

kantal

I don't use Debian now but on Ubuntu Gnome desktop there is a "Startup Applications" item in the Application menu.  Try to find similar!

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
Modify message

MBR

If you dont'n need window manager, you can start the application from .xinitrc (but withou window manager, you must manage all the windows on you own). So it's only usefull for fullscreen applications.

Alep

This is my  /etc/xdg/lxsession/LXDE/autostart and work fine

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@x11vnc -bg -forever -noxdamage -ncache_cr
@./run.py