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'm using Ubuntu 13.04 and python 2.7. When I click a .py file, it opens it in gedit. I want it to open in IDLE. When I right-click and choose "open with", IDLE is not in the list. I have tried several things I've read online but none have worked.

Edit: I've fixed it. I needed to add a -python2.7 when opening idle.desktop, which allowed me to open the proper file and edit the proper line.

share|improve this question
1  
Do you have a .desktop file for "IDLE"? In case you need help on that you could look at How to create a .desktop file –  user25656 Jul 16 '13 at 3:44
    
how do I find out if I do? I'm fairly new to Ubuntu. edit: sorry, didn't see the second part. –  lukas Jul 16 '13 at 3:45
    
In that case please hang around for some time. I hope someone will come along and guide you :). You could also edit your question to explain what you've tried so far. –  user25656 Jul 16 '13 at 3:47
    
that second thing is really gibberish to me, once again I have no idea how all this stuff works, I got Ubuntu barely two weeks ago –  lukas Jul 16 '13 at 3:48
1  
@lukas Since you've found a solution, please post it as an ansswer. This will help others and clarify that your problem is solved (especially if you mark your own answer as accepted, which you will be able to do in 2 days). –  Eliah Kagan Jul 16 '13 at 4:14
show 1 more comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.