[Bug 159825] New: Parent MIME types are searched for associations, not for defaults

bugzilla-daemon@bugzilla.gnome.org bugzilla-daemon@bugzilla.gnome.org
Mon, 29 Nov 2004 08:01:29 -0500 (EST)


http://bugzilla.gnome.org/show_bug.cgi?id=159825
gnome-vfs | MIME and file/program mapping | Ver: 2.8.x

           Summary: Parent MIME types are searched for associations, not for
                    defaults
           Product: gnome-vfs
           Version: 2.8.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: MIME and file/program mapping
        AssignedTo: gnome-vfs-maint@bugzilla.gnome.org
        ReportedBy: joss@debian.org
                CC: pkg-gnome-maintainers@lists.alioth.debian.org


When setting a default for the text/plain MIME association, it is not taken into
account for e.g. README and INSTALL files, and other text/x-* MIME types.

The problem is that in gnome_vfs_mime_get_default_application,
gnome_vfs_mime_get_default_desktop_entry is used, and returns the default only
for the current MIME type, not searching for its parents. When failing,
gnome_vfs_mime_get_all_desktop_entries is used and returns all entries,
including the parents'. Then the first one is used. Thus, you end up without
taking into account the default for the parents.

Proposed solution: fix gnome_vfs_mime_get_default_desktop_entry so that it
searches the parent MIME types for defaults.

------- You are receiving this mail because: -------
You are on the CC list for the bug.