Ubuntu – How to set default program to open specific file type

defaultdefault-programsfile typefilesgimp

I wish to set the default program to open .jpg files and other image files to GIMP. To do this as said in one of the answers here, I went into this section (Right-click > Properties > Open With):

Open With Properties Image Viewer

And selected GIMP Image Editor from the list of Recommended Applications, then I clicked the button Set as default, and this is what I then saw:

Open With Properties GIMP

And then sure enough when I right-clicked on a file of the file type that I had changed the default program for, the normal Image Viewer:

Image Viewer Right-click

Had been replaced with:

GIMP Right-click

But yet when double-clicking on a program, it still opens in Image Viewer and not GIMP, even though in all the settings it still says that that the default is now GIMP.

So really that is my question, why is this happening and how can I fix it?


OS Information:

Description:    Ubuntu 14.10
Release:    14.10

Best Answer

For some of the system default apps you can go to System Settings/Details e.g.:

Or for more advanced you can open Ubuntu-Tweak and go to Admins section and click on File Type Manager:

To install Ubuntu-Tweak:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

P.S.

I see you edited a bit your question you want Gimp to open all your photos or pics right? Using my workaround please do mention also that if you change from Image Viewer to Gimp it doesn't mean that you will open all photos with Gimp because this setting serves for .jpg/.jpeg and Gimp for example saves its work in .png portable network graphics by default and the default for .png will be Image Viewer anyways :) so to change that you need to configure all photos formats using Ubuntu-Tweak so they open with Gimp when you double click on them.