File association to unlisted application

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?

screenshot

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

In GNOME3 when apps that show on the right click Open With Other Application context menu but not on the right 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)

Copied from my answer here.

Alternate method

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= and 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

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply