Ubuntu – Changing the default program for an application

12.10default

I have installed MonoDevelop and after that Wine, but when I want to open an EXE file and then double click on it, it always runs with the Mono runtime, and if I want to run it with Wine, I should right click on it and choose Wine.

Well, in properties and in show other applications there isn't Wine that choose it for the default application… I have this problem for all types of applications and files.

When the software you want to run is in the right click application (Open With),
I can't choose it in properties for the default. In fact, I can't find it in properties, because it is in open with option in right click…

What should I do to fix this problem?

I'm running Ubuntu 12.10 (Quantal Quetzal), 32 bit.

Best Answer

first of all, add your new MimeType :

from the terminal open sudo gedit and copy the code bellow

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Hidden=false
Icon=my/icon/path                           <-- optional (for the file icon)
Type=MimeType
Patterns=*.xxx                              <--- my file extention 
MimeType=application/myAppName              <--- the mimetype of the file
Comment=My Comment

and save it to /usr/share/mimelnk/application/myApp.desktop "replace myapp with your app

linking your app with this mimetype:

use ubuntu Tweaks to link the file type with your app

note: the wine apps is located on the path /home/<userName>/.wine/drive_c/Program Files/Notepad++

also you can use locate 'yourApp.exe' to find its path

Related Question