mate-desktop / mate-control-center

Utilities to configure the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
64 stars 57 forks source link

default-applications additional MIME types? #94

Open AladW opened 10 years ago

AladW commented 10 years ago

mate-da-capplet.c handles (Browser)

x-scheme-handler/http x-scheme-handler/https x-scheme-handler/about

There's also...

x-scheme-handler/ftp x-scheme-handler/chrome application/x-extension-htm application/x-extension-html application/x-extension-shtml application/xhtml+xml application/x-extension-xhtml application/x-extension-xht

Firefox for example sets these when defining the default browser.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1572522-default-applications-additional-mime-types?utm_campaign=plugin&utm_content=tracker%2F559197&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F559197&utm_medium=issues&utm_source=github).
stefano-k commented 10 years ago

@AladW do you have a link to firefox source where to find this list?

AladW commented 10 years ago

From what I can see (strace) it reads from firefox.desktop / mimeinfo.cache; in Ubuntu it's like this:

http://bazaar.launchpad.net/~mozillateam/firefox/firefox-trunk.head/view/head:/debian/firefox.desktop.in#L211

Mozilla and iceweasel have less entries

http://anonscm.debian.org/gitweb/?p=pkg-mozilla/iceweasel.git;a=blob;f=debian/iceweasel.desktop;h=b8887d1ccbbf97699d0dd65a6fc114317b9476be;hb=9cf5490b81ae5f3f387627582dda6caf144bd591#l102

https://github.com/mozilla/integration-mozilla-inbound/blob/0d01aa29ce350beca861f7d3b7b4df399b246ed0/toolkit/mozapps/installer/linux/rpm/mozilla.desktop#L16

But I got the full list when setting the default browser both in Ubuntu and Debian so I must be missing something