Steps to get this working in Ubuntu 18.04
- edit
whichbrowser.sh
as you see fit- handy way to see your Chrome profiles:
cat ~/.config/google-chrome/Local\ State | jq .profile
- handy way to see your Chrome profiles:
- copy
whichbrowser.sh
to/usr/local/bin/whichbrowser
- copy
whichbrowser.desktop
to/usr/share/applications
- edit
/usr/share/applications/defaults.list
to addwhichbrowser.desktop
to the same handlers as chrome/firefox - run
sudo update-desktop-database
- use Ubuntu settings -> Details -> Default Applications, to change default web browser to whichbrowser script
- ???
- profit