Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a PyGtk application that I made using Quickly, and I would like to have it run on startup when installed. How would I go about doing this? I'm not sure if sticking the .desktop file in ~/.config/autostart/ would make it work or not. If that will fix it, I don't know how to add it to that folder since Quickly packages the project for you and has it's own installation script. Is it possible to modify what it does on installation?

If possible, I would also like to add the program in the System Settings Personal tab, but I do not know how to do that.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

To have it run on start-up for everyone, you should install an autostart file in /etc/xdg/autostart as per the XDG Autostart Specification.

share|improve this answer
    
Thanks! Do you know how I could modify Quickly's install script to add the .desktop file to that folder? –  unknownone Jun 22 '12 at 3:07
    
If the script is a standard Python setup.py, then you would add the appropriate info to the data_files argument to setup(), as specified in the distutils documentation: docs.python.org/distutils/… –  dobey Jun 22 '12 at 12:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.