views:

112

answers:

1

I have written a Python application and would like to give my users the option of having the app automatically launch itself when the user logs in. It is important that the user is able to toggle this option on/off from within the app itself, rather than having to manually edit login scripts, so this needs to be done from within the Python code rather than from a shell script. The app is deployed on Ubuntu Linux, any suggestions for the best way of doing this?

+2  A: 

Here's what you need to handle autostart.

Ignacio Vazquez-Abrams
For future reference - I ended up writing a small shell script to do this using the information from your link, and invoking it from Python via popen().
codebox_rob