[haiku-bugs] Re: [Haiku] #5821: [FileTypes] some images open in WebPositive

  • From: "tangobravo" <trac@xxxxxxxxxxxx>
  • Date: Tue, 27 Apr 2010 07:24:47 -0000

#5821: [FileTypes] some images open in WebPositive
----------------------------------+-----------------------------------------
 Reporter:  diver                 |       Owner:  axeld         
     Type:  bug                   |      Status:  new           
 Priority:  normal                |   Milestone:  R1/alpha2     
Component:  Kits/Application Kit  |     Version:  R1/Development
 Keywords:                        |   Blockedby:                
 Platform:  All                   |    Blocking:                
----------------------------------+-----------------------------------------

Comment(by tangobravo):

 It seems the issue stems from two possible interpretations of what a
 super-type "preferred" app is actually for.

 With ShowImage, it should probably be the "default" app for image/*
 whereas StyledEdit is probably more of a fall-back for text/*. The correct
 thing to do for these two cases is different, hence which solution is
 better is not clear.

 My vote would be for keeping the original behaviour, despite thinking that
 it seemed a good solution when I read Stephan's commit. I like to
 understand the decisions the OS is making on my behalf, and though I like
 it to do the right thing, in some ways it's more helpful if it does the
 wrong thing and yet it is clear why it has done that and it can be easily
 fixed. Adding the additional layer of possibility to the app that might be
 loaded (along with the intrinsically "random" choice) makes it harder to
 come up with a good mental model of what's going on.

 After breaking binary compatibility it would be good to separate the
 concepts of preferred default handler and fall-back handler for the super-
 type. In the fall-back case other applications that support the type would
 win whereas in the default case the preferred super-type handler would
 win.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5821#comment:10>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: