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.

While browsing files in nautilus, I want to open a tex file with kile. But, when I get to a dialog similar to the screenshot below, I do not see kile. Yet, I see it in the "Open With" menu.

How do I fix this?

enter image description here

share|improve this question
    
This question is also useful for any association of a filetype with any application. I recommend using the second method listed in the answer (editing mimeapps.list). –  luisgonzalez Dec 15 '11 at 15:03

1 Answer 1

up vote 8 down vote accepted

Copied from my answer here

http://ubuntuforums.org/showthread.php?p=11480074

In gnome3 when apps that show on the right click 'open with' context menu but not on the r. click Properties menu do so because the Exec= line in the apps .desktop doesn't end with a %letter

That's the case with kile. The 2 most likely letters would be f or U, I'd try U first.

gksudo gedit /usr/share/applications/kde4/kile.desktop

Make the Exec= line look like this

Exec=kile %U     

Should then show (do a log out/in if needed

Edit: An alternate method, (to set as default), on a per user basis would be to edit ~/.local/share/applications/mimeapps.list

In the [Default Applications] section you'd look for this line for plain text, text/plain= & this line for LaTex files, text/x-tex=

You'd edit either or both to set kile as default as such

text/plain=kile.desktop
text/x-tex=kile.desktop
share|improve this answer
    
Thanks - worked. By the way, Why do I see an "edit" button above? Strange for me to be able to edit your answer. –  vishvAs vAsuki Nov 25 '11 at 17:35
    
@vishvAs see askubuntu.com/faq#editing –  cscarney Nov 25 '11 at 18:23
    
Sorta new here - I gather you can edit other's answers to improve or correct things –  doug Nov 25 '11 at 18:24

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.