Jordi Burguet-Castell wrote:
> 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.
> """

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

Attachment: test-mime-info-cache-new
Description: Binary data

#include <unistd.h>
#include <glib.h>
#include <libgnomevfs/gnome-vfs.h>
#include <libgnomevfs/gnome-vfs-mime-info-cache.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
#include <libgnomevfs/gnome-vfs-mime-monitor.h>

int main (int argc, char **argv)
{
        char *mime_type;

        gnome_vfs_init ();

        if (argc > 1) {
                mime_type = argv[1];
        } else {
                mime_type = "text/plain";
        }


        GList *desktop_file_apps, *tmp;

        g_print ("Default: %s\n", gnome_vfs_mime_get_default_desktop_entry (mime_type));

        desktop_file_apps = gnome_vfs_mime_get_all_applications (mime_type);

        g_print ("All:\n");
        tmp = desktop_file_apps;
        while (tmp != NULL) {
                GnomeVFSMimeApplication *application;

                application = (GnomeVFSMimeApplication *) tmp->data;
                g_print ("%s, %s\n", application->id, application->name);
                tmp = tmp->next;
        }

        return 0;
}

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to