[haiku-commits] Re: r36500 - haiku/trunk/src/kits/app

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 27 Apr 2010 15:46:33 +0200

On 2010-04-27 at 12:24:00 [+0200], superstippi@xxxxxx wrote:
> Author: stippi
> Date: 2010-04-27 12:24:00 +0200 (Tue, 27 Apr 2010)
> New Revision: 36500
> Changeset: http://dev.haiku-os.org/changeset/36500/haiku
> Ticket: http://dev.haiku-os.org/ticket/5821
> 
> Modified:
>    haiku/trunk/src/kits/app/Roster.cpp
> Log:
> Changed the resolving of the best handler for a MIME type to consider other
> supporting apps of the sub-type only when there is a preferred handler for 
> the
> sub-type configured at all. In this case, it is assumed that the super-type
> preferred handler is not really suitable. In the case when no sub-type
> preferred handler is configured, the super-type preferred handler will 
> always
> get precedence, even if there are applications installed that declare direct
> support for the sub-type. This makes the behavior more 
> consistent/deterministic
> and the "Open With" menu that Tracker displays will have the checkmark at
> the app again that will really be used to open the type by default. Should
> fix #5821 for good, as suggested by Axel.

I'm not really fond of this solution either. I mean it is special casing the 
current MIME DB misconfiguration (which should be fixed). At least I find it 
quite a stretch to consider it a solution to an actual general problem.

CU, Ingo

Other related posts: