DefaultApplicationPriorities

Differences between revisions 8 and 9
Revision 8 as of 2009-06-02 13:25:28
Size: 2994
Editor: ANancy-258-1-2-114
Comment:
Revision 9 as of 2009-06-02 13:35:34
Size: 2755
Editor: ANancy-258-1-2-114
Comment:
Deletions are marked like this. Additions are marked like this.
Line 48: Line 48:
It's important that we are able to test new features, and demonstrate them to users. Use this section to describe a short plan that anybody can follow that demonstrates the feature is working. This can then be used during testing, and to show off after release. Please add an entry to http://testcases.qa.ubuntu.com/Coverage/NewFeatures for tracking test coverage.

This need not be added or completed until the specification is nearing beta.
 * Double click on a video in nautilus and verify that totem is launched
 * Install a player using a higher priority number
 * Double click on a video in nautilus and verify that the new player is launched

Summary

The specification describes how the static list shipped with the distribution and describing the application to use for a mimetype will be changed to a dynamic one

Release Note

This section should include a paragraph describing the end-user impact of this change. It is meant to be included in the release notes of the first release in which it is implemented. (Not all of these will actually be included in the release notes, at the release manager's discretion; but writing them is a useful exercise.)

It is mandatory.

Rationale

The static list used currently doesn't allow distributors to change a default application easily (vendors installing a commercial DVD players probably want this one to be used by default)

User stories

  • Daniel decides to buy a better DVD player than the one coming with Ubuntu, it goes on the Canonical store and buy a commercial player there, this one should be used once installed
  • Vincent has some w32 exe installers on its disk, those are associated with file-roller by default, he installs wine to be able to install those applications, once installed wine should be the default choice

Design

  • The .desktop files will have an optional InitialPreference=<Priority> (similar key to what KDE is using), a default priority will be used if there is no such key

  • The priorities to use will be described in a policy document
  • /usr/share/applications/defaults.list will not be shipped with new version but still read for compatibility reason
  • The cache format will be changed to list priorities, the cache filename need to be changed to reflect the compatibility breakage
  • The categories will be used to prefer the application matching the desktop when there are several choices (ie GNOME category when using GNOME)
  • The shared-mime-info update-desktop-database tool will be updated to write the new cache
  • glib needs to be update to understand the new format

The priority order will be:

  • mimeapps.list for sysadmin
  • defaults.list for distro and compatibility
  • mimeinfo.cache autobuilt

Migration

There is no migration required, a new cache will be used and the previous defaults.list still used for compatibility

Test/Demo Plan

  • Double click on a video in nautilus and verify that totem is launched
  • Install a player using a higher priority number
  • Double click on a video in nautilus and verify that the new player is launched


CategorySpec

DesktopTeam/Specs/Karmic/DefaultApplicationPriorities (last edited 2009-08-04 07:17:14 by 91)