Bug 86069

Summary: tweak handling of default apps in mimeapps spec
Product: Specifications Reporter: Allison Lortie (desrt) <desrt>
Component: GeneralAssignee: Vincent Untz <vuntz>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: desrt, faure
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: mime-apps: change rules for default apps

Description Allison Lortie (desrt) 2014-11-09 17:06:33 UTC
As per this discussion on the list:

http://lists.freedesktop.org/archives/xdg/2014-October/013355.html
(and continuing into November)
http://lists.freedesktop.org/archives/xdg/2014-November/013356.html
Comment 1 Allison Lortie (desrt) 2014-11-09 17:07:14 UTC
Created attachment 109163 [details] [review]
mime-apps: change rules for default apps

Reverse the earlier language that selecting default apps has nothing to
do with associations.  We now require that an app is associated with a
particular type before it can be considered as the default for that
type.

This resolves a couple of tricky cases in terms of expected behaviour
when removing the association between an app and a particular type.

 - there is no need to explicitly select a "new default" at this point
   which may become uninstalled in the future (which would result in
   fallback to the application that we removed the association for)

 - it is now possible to have 'no default app' in case the only app for
   a given mime type had its association manually removed

This does add an additional requirement on implementations, however:

 - implementations should ensure that a type association exists when
   between an app and a type when setting that app as the default
Comment 2 David Faure 2014-11-18 22:09:13 UTC
OK, I approve this change.
Comment 3 Allison Lortie (desrt) 2015-03-06 15:11:17 UTC
Attachment 109163 [details] pushed as ffd4095 - mime-apps: change rules for default apps

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.