After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 159825 - Parent MIME types are searched for associations, not for defaults
Parent MIME types are searched for associations, not for defaults
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: MIME and file/program mapping
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks: 160959
 
 
Reported: 2004-11-29 13:01 UTC by Josselin Mouette
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
Proposed patch for gnomeVFS 2.8.3 (2.29 KB, patch)
2004-11-29 13:01 UTC, Josselin Mouette
none Details | Review
slightly different patch, same logic (1.90 KB, patch)
2004-12-10 21:47 UTC, Marco Pesenti Gritti
none Details | Review

Description Josselin Mouette 2004-11-29 13:01:28 UTC
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.
Comment 1 Josselin Mouette 2004-11-29 13:01:58 UTC
Created attachment 34268 [details] [review]
Proposed patch for gnomeVFS 2.8.3
Comment 2 Marco Pesenti Gritti 2004-12-10 21:47:06 UTC
Created attachment 34715 [details] [review]
slightly different patch, same logic
Comment 3 Marco Pesenti Gritti 2004-12-10 23:13:45 UTC
checked in