blob: 1885e19e13022a65036d3305b94a0394f3174a4c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
[ -n "$DEBUG" ] && set -x
bin=${FIREFOX_BIN:-/usr/bin/firefox}
# enable touch device support
export MOZ_USE_XINPUT2=1
# user dbus remote exclusively
export MOZ_DBUS_REMOTE=1
# enable webrender
export MOZ_WEBRENDER=1
case "$(basename "$0")" in
firefox | nightly)
exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly $@
;;
firefox-private)
exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly $@ --private-window
;;
firefox-kiosk)
exec "${bin}" --profile $HOME/.mozilla/firefox/wr7p23up.default-nightly --ssb $@
;;
firefox-clean)
exec firejail \
--private \
--profile=firefox \
-- \
"${bin}" --new-instance $@
# "${bin}" -P clean --new-instance $@
# --overlay-tmpfs=$HOME/.mozilla \
;;
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
|