[haiku-development] How do I add supported apps to a MIME type?

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Wed, 1 Sep 2021 10:06:30 -0400

Dear Haiku developers,

I'm trying to add a Color picker mime type to FileTypes but I'm
running into a snag. I installed a new Color pickers MIME type into
FileTypes, and I see the Color Picker binaries under FileTypes => File
=> Applications but the color picker apps are not populating under
Preferred app pop up as supported apps for my Color pick type.

I can get the Color picker applications to show in the drop down by
running `mimeset -F -all ~/config/non-packaged/add-ons/Color\
Pickers/*` but I shouldn't have to do that. To add support for the
MIME type I've included resource file_types message { "types" =
"application/x-vnd.Haiku-ColorPicker" }; in my rdef file

I'm seeing the same thing with WebPositive and the "Be File URL" MIME
type in FileTypes so it's not just my apps that are affected by this.
The MIME type "application/x-vnd.Be.URL.file" is listed under the
types array in the WebPositive rdef file [0] but it doesn't show up in
the Preferred apps drop down in FileTypes either. If I run `mimeset -F
-all /boot/system/apps/webpositive` then WebPositive will show up as a
supported app on the "Be File URL" type in FileTypes in the Preferred
apps pop up menu. Again, I shouldn't have to do this.

So how do I get Haiku to register all the supported apps for all the
MIME types that it knows about?

[0] 
https://git.haiku-os.org/haiku/tree/src/apps/webpositive/WebPositive.rdef#n25


Thanks for your help,
John Scipione

Other related posts: