diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-03 12:52:42 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-12-07 19:28:05 +0100 |
| commit | f4dde76b9a849b45bd29996c76980843c87d21eb (patch) | |
| tree | b1901609343872fdfaa44a610e1fb8d04dec600f /bin | |
| parent | 5e82d2c9426910247bd836f5de8cb7243cc5ebff (diff) | |
Add bin/firefox; spawns different profiles based on arg0
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/firefox | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/firefox b/bin/firefox new file mode 100755 index 0000000..659b854 --- /dev/null +++ b/bin/firefox @@ -0,0 +1,27 @@ +#!/bin/sh + +set -x + +bin=${FIREFOX_BIN:-firefox-nightly-bin} + +# enable touch device support +export MOZ_USE_XINPUT2=1 + +case "$(basename "$0")" in + firefox|nightly) + exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly $@ ;; + + firefox-kiosk) + exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly --ssb $@ ;; + + firefox-clean) + exec firejail \ + --overlay-tmpfs \ + --profile=firefox \ + "${bin}" -P clean --new-instance $@ ;; + + workfox) + swx -M work "${bin}" --profile $HOME/.mozilla/firefox/d2ps1x6l.work $@ ;; + workfox-kiosk) + swx -M work "${bin}" --profile $HOME/.mozilla/firefox/d2ps1x6l.work --ssb $@ ;; +esac |