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

I am running Ubuntu 11.10/64 bit with Unity 3D on a Intel® Core™ i5-2400 CPU @ 3.10GHz × 4 computer.

I am currently trying to use texstudio as the default application for opening *.tex files, but I cannot change the default application associated with that file type. I tried to change it by right-clicking on a .tex-file, then "properties", "open with", "show other applications" but however, neither texmaker nor texstudio will appear in the programme list and oddly enough, there is no "add application" button anymore, to add an application to that list by hand. I tried to make an entry in my /home/my home folder/.local/share/applications/mimeapps/mimeapps.list, nothing happened, still opening the files with gedit.

Is there no way to change the list of "other applications" or add an default application programme manually, i.e. by editing some file?

Thanks for your help.


share|improve this question

2 Answers 2

What you need it to add this line to ~/.local/share/applications/defaults.list


which in your case is:


That should work.


share|improve this answer

From what I've read here:

Create an texstudio.desktop file in ~/.local/share/applications/ with the following content:

[Desktop Entry]
Comment=Edit TEX files
Exec=texstudio %f

On file browser, you can right click a .tex file for the context menu and choose Open With -> Other Application. Click on Show other applications and you should see this dialog with this:

Choosing Texstudio

You may have to change the Exec line, I am not sure if that would be the right application name.

share|improve this answer

Your Answer


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.