# 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