Now, it would seem that Ubuntu ships in a working way if you've imported JPEG files off your camera. However, if you've got a decent camera (ie. DSLR) you've no doubt switched your camera to RAW mode, which for me is Canon CR2. You'll find that:
- You can view the RAW files in Nautilus (the Gnome file manager)
- You can view the RAW files in F-Spot
- When you right click in Nautilus, you'll notice that Gimp is there and will open the file
- But you'll notice that when you right click on the photo in F-Spot, the "Open With" menu is blank.
Ok, so there are two things missing.
- The MIME type for the raw file type is missing
- The Gimp application description file is missing the mime type that says "I can open raw files"
Now, to fix problem #1, add a file in the directory "~/.local/share/mime/packages" called "canonraw-mimetypes.xml", with the contents:
<?xml version="1.0"?>Now, to fix problem #2, you need to edit the gimp.desktop file. As root, edit the file "/usr/share/applications/gimp.desktop", and on the line that begins with "MimeType=" you need to add "image/x-canon-cr2;" to the end of it.
Now, update the Gnome MIME database:
nathanr@falcon:~$ update-mime-database ~/.local/share/mime/After logging out and logging in the "Open With" menu should include Gimp for *.cr2 files.
Note to Mac users: you can ignore this post. It's another case of "it just works on the Mac".