DesktopFile.FromMime (gb.desktop)

Static Function FromMime ( MimeType As String ) As DesktopFile[]

Returns an array of desktop entry files that are registered as handling the provided MimeType.

For example: DesktopEntry.FindMime("text/html") should return all desktop entry files recognized by the desktop system in use that handle files whose mime-type is "text/html".

Sample:

Dim hTest As DesktopFile[]
Dim idx As Integer

hTest = DesktopFile.FromMime("text/html")

For idx = 0 To hTest.Max
 Print hTest[idx].Name
Next

could result in something like
AbiWord
Geany
Bluefish Editor
Firefox
LibreOffice 5.0 Writer
Diffuse Merge Tool
Leafpad

(well it does on my system anyway)