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 file in ~/.config/autostart/ that looks like this:

[Desktop Entry]
Type=Application
Exec=python ~/Documents/StackApplet/stackapplet.py
Icon=/usr/share/pixmaps/stackapplet.png
Terminal=false
Comment=a panel indicator for monitoring StackExchange sites

Name=StackApplet

Categories=Utility;

Unfortunately, it isn't working - the application is not starting when I log in. If I open a terminal and copy-and-paste the command listed in Exec above, then the application runs just fine.

What am I doing wrong?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Try expanding the ~/Documents/StackApplet/stackapplet.py to the full path, using ~ in the path may not be supported in .desktop files.

share|improve this answer
    
Well, I'll try it. –  Nathan Osman Oct 22 '10 at 1:14
    
Yup, that was the problem all right. Thanks! –  Nathan Osman Oct 22 '10 at 1:15

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.