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 637675 - appinfo: avoid overriding the system defaults when adding support
appinfo: avoid overriding the system defaults when adding support
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-12-20 16:48 UTC by Cosimo Cecchi
Modified: 2010-12-20 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
appinfo: avoid overriding the system defaults when adding support (3.57 KB, patch)
2010-12-20 16:48 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2010-12-20 16:48:39 UTC
We want to be compatible with the following situation:
- there's no explicit default set in mimeapps.list
- we add support for a content type to a specific application, and that
  list is empty
- the default should be picked from the system list, not overridden by
  the user-added application.

So we make the default explicit in this case, by adding it to the
relevant section in mimeapps.list.
Comment 1 Cosimo Cecchi 2010-12-20 16:48:43 UTC
Created attachment 176769 [details] [review]
appinfo: avoid overriding the system defaults when adding support
Comment 2 Cosimo Cecchi 2010-12-20 17:20:39 UTC
Pushed after Matthias' ACK on IRC

--

Attachment 176769 [details] pushed as 6a10591 - appinfo: avoid overriding the system defaults when adding support