firefox wrappers for default and hardened profile

This commit is contained in:
tavo-wasd 2023-09-19 20:21:57 -06:00
parent 006b774da7
commit 208b17a302
2 changed files with 18 additions and 3 deletions

View file

@ -1,5 +1,10 @@
#!/usr/bin/env sh
HOME=$HOME/.local/share/firefox
# Protect $HOME
HOME=$HOME/.local/share/mozilla
mkdir -p "$HOME"
exec /usr/bin/firefox-esr "$@"
# Check for either firefox-esr or firefox binary
[ -e /usr/bin/firefox-esr ] && BIN="/usr/bin/firefox-esr" || BIN="/usr/bin/firefox"
# Run with default profile
exec "$BIN" -P default "$@"

10
wrappers/firefox-hardened Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env sh
# Protect $HOME
HOME=$HOME/.local/share/mozilla
mkdir -p "$HOME"
# Check for either firefox-esr or firefox binary
[ -e /usr/bin/firefox-esr ] && BIN="/usr/bin/firefox-esr" || BIN="/usr/bin/firefox"
# Run with hardened profile
exec "$BIN" -P hardened "$@"