Nautilus is not letting me open .jpg files in Dapper

Bug #42992 reported by Gregory Oschwald
12
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

I get the following error when trying to open files with the extension "jpg" from Nautilus in Dapper:

---

The filename "firewords.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.

---

I can open files with the extension "jpeg" fine from Nautilus, and I can open jpg and JPG files using "Open with".

Revision history for this message
Tim Butler (timbutler) wrote :

Can you confirm that Eye of GNOME is installed and what version?

Revision history for this message
Gregory Oschwald (osch0001) wrote :

Eye of GNOME is installed. It is version 2.14.1-0ubuntu1.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. Could you attach an example of file having the issue?

Changed in nautilus:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Gregory Oschwald (osch0001) wrote : Example of a file with a .jpg extension

As mentioned in my initial bug report, this happens with _any_ JPEG file with the jpg or JPG extensions (but not the jpeg extension). Here is an example of such a file.

Also note that this is a problem with Nautilus, as the image view doesn't even get started. I can open the files using "Open with" as suggested in the error text.

Revision history for this message
Sebastien Bacher (seb128) wrote :

works fine on my box, does "grep "jpg document" /usr/share/mime/* -r" write anything?

Revision history for this message
Gregory Oschwald (osch0001) wrote : Re: [Bug 42992] Re: Nautilus is not letting me open .jpg files in Dapper

Sebastien Bacher wrote:
> works fine on my box, does "grep "jpg document" /usr/share/mime/* -r"
> write anything?
>

No, it doesn't return anything.

Greg

Revision history for this message
Sebastien Bacher (seb128) wrote :

What does "gnomevfs-info --slow-mime image.jpg" and "gnomevfs-info image.jpg" say on the topic? Does running "sudo update-mime-database /usr/share/mime" makes a difference? Do you have some .mime to your user directory and installed something with its own mimetype definitions to your dapper?

Revision history for this message
Gregory Oschwald (osch0001) wrote :

It looks like there was a mime type definition in ~/.local/share/mime/application/x-extension-jpg.xml with the following content:

<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-extension-jpg">
<!--Created automatically by update-mime-database. DO NOT EDIT!-->
  <comment>jpg document</comment>
</mime-type>

After moving this file, I can open jpg files fine. I am not sure what could have installed this, as I am using a fairly stock Ubuntu install (Breezy upgraded to Dapper), and I cannot recall installing any programs for opening JPGs besides the ones included in the normal install.

I don't know if it is relevant, but here are answers to the rest of your questions:

$ gnomevfs-info --slow-mime image.jpg
Error: File not found

$ gnomevfs-info image.jpg
Error: File not found

> Does running "sudo update-mime-database /usr/share/mime" makes a difference?

No.

Thanks for the help. Sorry if I wasted your time on this one.

Revision history for this message
Gregory Oschwald (osch0001) wrote :

I should also mention that ~/.local/share/mime/packages/Override.xml, which I also moved, contained:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-extension-jpg"><comment>jpg document</comment><glob pattern="*.jpg"/></mime-type>
</mime-info>

Revision history for this message
Sebastien Bacher (seb128) wrote :

"gnomevfs-info image.jpg" was supposed to be runned on a .jpg (replace "image.jpg" by the name of one of your images). Anyway that's not a nautilus bug, marking as rejected. Whatever installed those .xml is bugged, let we know if you figure what created them. Maybe have a look on the date could give you an idea

Changed in nautilus:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.