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

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Mon, 26 Apr 2010 21:04:43 -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 stippi):

 The core problem that you describe only results from applications
 declaring the supported types too verbosely, and I don't yet know if that
 is a theoretical problem, or a problem that exists, but could be fixed by
 removing needlessly declared supported types from some apps. There are
 certainly some that declare too many. You are absolutely right that
 ShowImage does not know which image/* type it supports. The same is true
 for ArtPaint, WonderBrush and a dosen other apps that load images via the
 Translation Kit. If all these apps declare to support image/* and then
 ''only'' their native image type (image/x-wonderbrush, image/x-artpaint or
 whatever) and no other types needlessly, then the problem you describe
 doesn't actually exist in practice, since you can configure ShowImage as
 the preferred app for image/* and it will always be chosen except for
 image/x-wonderbrush and image/x-artpaint.

 Similarily with Tracker add-ons, I don't know what part of your argument
 is a real problem versus a theoretical problem, since I am pretty sure
 that text/x-email is associated with Mail, so Mark-As-Read should not
 randomly open if you double click a Mail. If it does, then it's a bug.

 To sum up, the problem that you describe can be fixed once, by removing
 needlessly declared support for specific types (in packages and our own
 apps). MediaPlayer is a good example, it should only declare audio/* and
 video/*, I don't even know why it declares so many specific types as
 supported. I think this still stems from a time when the MIME database was
 not properly setup on a fresh image.

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

Other related posts: