adopt kitty
[distro-setup] / filesystem / usr / local / bin / abrowser
1 #!/bin/bash
2
3 # https://stackoverflow.com/a/2108540
4 tmp=:$PATH:
5 del=/usr/local/bin
6 tmp=${tmp//:$del:/:}
7 tmp=${tmp%:}
8 tmp=${tmp#:}
9 PATH=$tmp
10
11 # -allow-downgrade good enough?
12 #rm -f {/p/c/firefox-main-profile,/p/c/firefox-main-profile,/p/c/firefox-vpn2-profile,/mnt/z/firefox-vpn-profile}/compatibility.ini
13
14 # --allow-downgrade
15 # ^ useful option for when the browser refuses to run, but it always
16 # causes a new browser window to open, even if normally it would open a
17 # new tab
18
19 # prefer abrowser
20 if type -P firefox &>/dev/null; then
21 abrowser "$@"
22 else
23 firefox "$@"
24 fi