Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
@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

Your Answer


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

Browse other questions tagged or ask your own question.