Quick-Linux-Setup/settings/librewolf.sh
2024-09-30 18:45:28 -04:00

11 lines
No EOL
646 B
Bash

# Does the LibreWolf directory exist?
if [ -d "~/.var/app/io.gitlab.librewolf-community/.librewolf/*.default-default" ]; then
echo "The LibreWolf directory does exist. This means you haven't opened LibreWolf yet."
echo "Open LibreWolf so the directory can be generated, then close it. Run this script again."
fi
# Backup original prefs file
cp ~/.var/app/io.gitlab.librewolf-community/.librewolf/*.default-default/prefs.js ~/.var/app/io.gitlab.librewolf-community/.librewolf/*.default-default/prefs-default.js
# Apply custom prefs file
cp ./configs/librewolf.js ~/.var/app/io.gitlab.librewolf-community/.librewolf/*.default-default/prefs.js