blurredfox
blurredfox copied to clipboard
Cannot install using script.
I already have one user profile but the script doesn't work.
Hmmm it looks like your profile has suffix which the script doesn't support yet. So just manually install it right now. Will fix it later if I have a time. Patches welcome, of course.
I can reproduce this issue on arch linux with the regular firefox form the repos
I came up with this which reliably work in finding the firefox dir, it can be improved greatly
function check_profile() {
OS=$(cat /etc/os-release |grep PRETTY_NAME=)
echo $OS
if [[ $OS==*"Arch Linux" ]];
then
if [[ "${1}" == "default-release" ]];
then
FF_USER_DIRECTORY="$(find "${HOME}/.mozilla/firefox/" -maxdepth 1 -type d -regextype egrep -regex '.*[a-zA-Z0-9]+.'|grep ${1})"
else
FF_USER_DIRECTORY="$(find "${HOME}/.mozilla/firefox/" -maxdepth 1 -type d -regextype egrep -regex '.*[a-zA-Z0-9]+.'${1})"
fi
else
FF_USER_DIRECTORY="$(find "${HOME}/.mozilla/firefox/" -maxdepth 1 -type d -regextype egrep -regex '.*[a-zA-Z0-9]+.'${1})"
fi
}