Choose your web browser for links in any app on Linux, and remember your choice if needed. Customize the browsers (or apps) you want to use.
Whenever you click on a link (or web-related file), you can choose which web browser shall be used to open it.
It is basically a replacement of your default web browser in the first place, so you can use it to subsequently call and run different browsers instead, e.g. one for anonymous surfing, one for online accounts, one for secure banking, another one for coding, testing and so on.
The script is a combination of the functions from Junction on Linux -- much like Choosy on Mac, or BrowseRouter on Win.
- Download (and extract) or clone the repo (see buttons above on the right hand side)
- run the .sh file in
install/to install all dependencies (like Python 3 and GTK 4)cd install && chmod +x *.sh./browserSelectorInstall.sh
- change
browserSelectorInstall.pyfile insource/to reflect your setup and needs- make sure all your referenced browser
.desktopfiles use an uppercase%Uat the end of theExecline
- make sure all your referenced browser
- test it e.g. with
./browserSelector.py https://gitlab.com, or./browserSelector.py ../tests/ab.html
*To use your own Browsers in the Selector you hav to add your execution command in the source/gui.py file! (I'am working on an automatic version)
- add
browserSelector.desktopto the following protocol entries in~/.config/mimeapps.list:- in section
[Default Applications]to (separated by semicolon)text/htmltext/xmlimage/webpx-scheme-handler/httpx-scheme-handler/httpsx-scheme-handler/ftpapplication/xhtml_xml
- and do it all over again for the same entries in
[Added Associations]further down the file- so, for example, you have twice something like this in your file:
text/html=codium.desktop;browserSelector.desktop;
- so, for example, you have twice something like this in your file:
- in section
- now logout from your desktop session and login again to have your changes loaded
- finally link your Default web browser setting to
Browser Selector- in Gnome:
System settings/Default applications/Web - in KDE:
Settings/Standard Components - you may also run
xdg-settings set default-web-browser browserSelector.desktopfrom your shell instead
- in Gnome:
- test it e.g. with
xdg-open https://gitlab.com, orxdg-open ../tests/ab.html
If you find an bug you can open an Issue page on Github but I dont know if i can responde to it, please try a search first!
- Make an automatic script to find and implement Browsers in the selector
MIT
- Release: stable
Status: In activ Development
Original idea by ToSo
