Ubuntu – How to dispatch clicked URLs to specific browser based on domain (as OSX Choosy does)

browserfirefoxgoogle-chrome

I am trying to replicate the functionality of Choosy (https://www.choosyosx.com/) under Ubuntu 16.04.

In particular, I want to have it set up so that when I click in a non-browser application on a link to github.com, pivotaltracker.com, or youtube.com that URL opens in Chrome, and all other URLs open in Firefox.

I'm fine with links in browsers staying in the same browser.

Is there any easy way to do what I'm looking for?

Best Answer

I liked the idea and didn't find any existing solution quickly so I've written my own dispatcher: https://github.com/int-ua/openbydomain/

The idea is to make it your default "browser".

P.S. My first use-case will be apport.