From f4dde76b9a849b45bd29996c76980843c87d21eb Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 3 Dec 2020 12:52:42 +0100 Subject: Add bin/firefox; spawns different profiles based on arg0 --- bin/firefox | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 bin/firefox 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 -- cgit 1.4.1