summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xbin/firefox27
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