PDA

View Full Version : fspot broke my mime type (a howto)


pyros
August 27th, 2006, 03:05 AM
I'm not exactly sure of the how or the why or what external circumstances contirbuted to this, but on the two seperate occasions that I have installed fspot on a clean dapper install, it hosed my image mime types. Thumbnails wouldn't be displayed in nautilus unless I selected the image; when viewing an image with eog, I couldn't use the arrows to browse through the other images in the same directory; trying to just double-click on an image gave me a warning:

The filename "control_panel.jpg" indicates that this file is of type "jpg document". The contents of the file indicate that the file is of type "JPEG image". If you open this file, the file might present a security risk to your system.

Do not open the file unless you created the file yourself, or received the file from a trusted source. To open the file, rename the file to the correct extension for "JPEG image", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file.

The first time this happened with png images, this time with jpg images. If I renamed the suffix (for example jpeg, or PNG) it would work just fine. It's rather irritating when you have to rename gigabytes of images. So I managed track down the culprit (again) and hve decided to put this on the forum for when I forget again.. I mean share this with the world. Your results may vary.

*Open nautilus and select "Show hidden files" from the view menu.
*In your home folder, look for ".local"-- it should be a folder-- and open it.
*Find the folder named "share" and open it.
*Find the folder named "mime" and open it.
*Find the file named "globs" and open it.

If the file looks something like this:

# This file was automatically generated by the
# update-mime-database command. DO NOT EDIT!
application/x-extension-jpg:*.jpg

we have the perpetrator of this vile inconvience.
*Add "# " in front of the line "application/x-extension..." REMEMBER THE SPACE, it's probably crucial. Now save the file and test your reslults.

carbonrodney
November 19th, 2006, 07:43 PM
YOU LEGEND!!!
Worked like a dream!

pyros
November 21st, 2006, 07:40 PM
Haha. Yeah, it was a pain to find it the first time. Glad it was of help to you.

battlesquid
February 11th, 2007, 10:15 AM
Thanks pyros, real life saver :-D This should be fixed though as I'm sure a lot of other people have the same problem, as this was a default setting for me anyways...

pyros
February 11th, 2007, 07:02 PM
Thanks pyros, real life saver :-D This should be fixed though as I'm sure a lot of other people have the same problem, as this was a default setting for me anyways...

I have to wonder as to the hows and whys on this problem. It certainly is strange. Glad I wasn't the only one who had this problem.

danohuiginn
March 12th, 2007, 07:04 AM
There's now a bug open on this at https://launchpad.net/ubuntu/+source/f-spot/+bug/91128

Let us know over there if you have any more ideas what might be causing this.

Reschat
March 17th, 2007, 11:32 AM
Thank you so very much. It was just what I needed.

lostQ
November 21st, 2007, 01:39 PM
This should be a sticky thread! I've been looking for a solution for this problem for two days now,


Thanks.

bfgmovies
December 28th, 2007, 11:12 AM
That realy worked glad you posted this man.

bfgmovies
December 28th, 2007, 11:16 AM
That really worked glad you posted this man. I was having a pain right clicking on my jpeg's and choosing my image viewer every time.