Using Python to add/remove Ubuntu login script items
I have written a Python application and would like to give my users the option of havi开发者_开发技巧ng 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?
Here's what you need to handle autostart.
精彩评论