- Package:
- libglib2.0-0
- Source:
- glib2.0
- Description:
- GLib library of C routines
- Submitter:
- Jordi Burguet-Castell
- Date:
- 2010-09-16 13:09:05 UTC
- Severity:
- important
--- Please enter the report below this line. --- Nautilus will not open png files (unless right-clicking and selecting "Open With..."), claiming the following: """ The filename "hoftmon-working.png" indicates that this file is of type "png document". The contents of the file indicate that the file is of type "PNG 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 "PNG image", then open the file normally. Alternatively, use the Open With menu to choose a specific application for the file. """ Debian Release: squeeze/sid 500 unstable ftp.us.debian.org 500 testing security.debian.org 500 oldstable debian-multimedia.org --- Package information. --- Depends (Version) | Installed ===========================================-+-=============== libart-2.0-2 (>= 2.3.18) | 2.3.20-2 libatk1.0-0 (>= 1.20.0) | 1.24.0-2 libbonobo2-0 (>= 2.15.0) | 2.24.0-2 libc6 (>= 2.7-1) | 2.9-4 libcairo2 (>= 1.2.4) | 1.8.6-2 libeel2-2.20 | 2.20.0-7 libesd0 (>= 0.2.35) | 0.2.41-2 OR libesd-alsa0 (>= 0.2.35) | libexempi3 | 2.1.0-3 libexif12 | 0.6.16-2.1 libgail-common (>= 1.10.1) | 2.14.7-4 libgail18 (>= 1.10.1) | 2.14.7-4 libgconf2-4 (>= 2.13.5) | 2.24.0-7 libglade2-0 (>= 1:2.6.1) | 1:2.6.3-1 libglib2.0-0 (>= 2.16.0) | 2.18.4-2 libgnome-desktop-2 (>= 2.22.0) | 2.22.3-2 libgnome2-0 (>= 2.17.3) | 2.24.1-2 libgnomecanvas2-0 (>= 2.11.1) | 2.20.1.1-1 libgnomeui-0 (>= 2.17.1) | 2.24.0-2 libgnomevfs2-0 (>= 1:2.17.90) | 1:2.24.0-2 libgtk2.0-0 (>= 2.12.0) | 2.14.7-4 libnautilus-extension1 (>= 2.17.90) | 2.20.0-7 liborbit2 (>= 1:2.14.10) | 1:2.14.16-0.1 libpango1.0-0 (>= 1.20.3) | 1.22.4-2 librsvg2-2 (>= 2.18.1) | 2.22.3-2 libselinux1 (>= 2.0.59) | 2.0.71-1 libstartup-notification0 (>= 0.8-1) | 0.9-1 libtrackerclient0 (>= 0.6.2) | 0.6.90-3 libx11-6 | 2:1.1.5-2 libxml2 (>= 2.6.27) | 2.7.3.dfsg-1 nautilus-data (>= 2.20) | 2.20.0-7 nautilus-data (<< 2.21) | 2.20.0-7 shared-mime-info | 0.60-2 gnome-control-center (>= 2.6) | 1:2.22.2.1-2 desktop-file-utils (>= 0.7) | 0.15-1
--- Please enter the report below this line. --- This also happens with JPEG files (and possibly other image files). This is what nautilus says when trying to open a jpeg file: """ Cannot open P1020834.JPG The filename "P1020834.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. """ Cheers, jordi Debian Release: squeeze/sid 500 unstable ftp.us.debian.org 500 testing security.debian.org 500 oldstable debian-multimedia.org --- Package information. --- Depends (Version) | Installed ===========================================-+-=============== libart-2.0-2 (>= 2.3.18) | 2.3.20-2 libatk1.0-0 (>= 1.20.0) | 1.24.0-2 libbonobo2-0 (>= 2.15.0) | 2.24.0-2 libc6 (>= 2.7-1) | 2.9-4 libcairo2 (>= 1.2.4) | 1.8.6-2 libeel2-2.20 | 2.20.0-7 libesd0 (>= 0.2.35) | 0.2.41-2 OR libesd-alsa0 (>= 0.2.35) | libexempi3 | 2.1.0-3 libexif12 | 0.6.16-2.1 libgail-common (>= 1.10.1) | 2.14.7-4 libgail18 (>= 1.10.1) | 2.14.7-4 libgconf2-4 (>= 2.13.5) | 2.24.0-7 libglade2-0 (>= 1:2.6.1) | 1:2.6.3-1 libglib2.0-0 (>= 2.16.0) | 2.18.4-2 libgnome-desktop-2 (>= 2.22.0) | 2.22.3-2 libgnome2-0 (>= 2.17.3) | 2.24.1-2 libgnomecanvas2-0 (>= 2.11.1) | 2.20.1.1-1 libgnomeui-0 (>= 2.17.1) | 2.24.0-2 libgnomevfs2-0 (>= 1:2.17.90) | 1:2.24.0-2 libgtk2.0-0 (>= 2.12.0) | 2.14.7-4 libnautilus-extension1 (>= 2.17.90) | 2.20.0-7 liborbit2 (>= 1:2.14.10) | 1:2.14.16-0.1 libpango1.0-0 (>= 1.20.3) | 1.22.4-2 librsvg2-2 (>= 2.18.1) | 2.22.3-2 libselinux1 (>= 2.0.59) | 2.0.71-1 libstartup-notification0 (>= 0.8-1) | 0.9-1 libtrackerclient0 (>= 0.6.2) | 0.6.90-3 libx11-6 | 2:1.1.5-2 libxml2 (>= 2.6.27) | 2.7.3.dfsg-1 nautilus-data (>= 2.20) | 2.20.0-7 nautilus-data (<< 2.21) | 2.20.0-7 shared-mime-info | 0.60-2 gnome-control-center (>= 2.6) | 1:2.22.2.1-2 desktop-file-utils (>= 0.7) | 0.15-1
Le mercredi 04 mars 2009 à 17:27 -0600, Jordi Burguet-Castell a écrit : shared-mime-info package?
Yes, I restarted it. To be sure, I have re-restarted everything and have the same problem. Thanks, jordi
Le mercredi 04 mars 2009 à 19:25 -0600, Jordi Burguet Castell a écrit : What if you remove /usr/share/mime/mime.cache ? What if you regenerate it with "update-mime-database /usr/share/mime" ?
Jordi Burguet-Castell wrote: Could paste the output of running the attached binary in a terminal? You have to run it like "./test-mime-info-cache-new". I'm also attaching the source code in case you want to compile it yourself (do it with "gcc test-mime-info-cache-new.c -o test-mime-info-cache-new `pkg-config --cflags --libs gnome-vfs-2.0`"). Also, after doing that, can you downgrade shared-mime-info to the version in testing and see if the problem goes away? Thanks, Emilio
Hi Josselin,
I tried both, and none worked.
When I did "update-mime-database /usr/share/mime", it created a
/usr/share/mime/mime.cache exactly as the old one ("diff
/usr/share/mime/mime.cache /tmp" said nothing).
I also tried restarting my X session just in case, but I still have
the same problem.
Thanks,
jordi
I forgot to attach the output: root@snow:/home/jordi# update-mime-database /usr/share/mime Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type in type 'uri/rtspu' Unknown media type in type 'fonts/package' Unknown media type in type 'interface/x-winamp-skin'
Sure! jordi@snow:~/downloads$ gcc test-mime-info-cache-new.c -o test-mime-info-cache-new `pkg-config --cflags --libs gnome-vfs-2.0` jordi@snow:~/downloads$ ./test-mime-info-cache-new Default: gedit.desktop All: gedit.desktop, Text Editor texmacs.desktop, GNU TeXmacs Editor kde-qgo.desktop, qgo abiword.desktop, AbiWord emacs22-gtk.desktop, Emacs 22 (X11) jordi@snow:~/downloads$ I have then downgraded shared-mime-info as you said (by editing sources.list, changing "unstable" to "testing", then "apt-get update" and "dpkg -r --force-all shared-mime-info", and finally "apt-get -t testing --reinstall install shared-mime-info"... I am not sure if it is the standard way). It works! I can directly open the files. Nautilus is not showing previews of most of the graphic files, though. Thanks, jordi
Jordi Burguet Castell wrote: If you remove ~/.local/share/mime/mime.cache and restart the session does it make a difference? Does the problem happen with a totally new user? Thanks, Emilio
Hi Emilio, I removed ~/.local/share/mime/mime.cache and restarted the session, and guess what, it all works now! I am now upgrading the whole system and will restart the session again to check if everything is still working fine. I'll let you know the results. Thanks! jordi
After upgrading, everything still continues working. And it works for the new user too. Just to let you know. Cheers, jordi On Sun, Mar 8, 2009 at 3:09 PM, Jordi Burguet Castell <jordi.burguet.castell@gmail.com> wrote:
Looking at this it seems that there is not much of a bug left. Can this be closed (or otherwise downgraded)? cu AW