blurredfox icon indicating copy to clipboard operation
blurredfox copied to clipboard

Cannot install using script.

Open arun54321 opened this issue 3 years ago • 3 comments

I already have one user profile but the script doesn't work.

Screenshot_20200920_074519

arun54321 avatar Sep 20 '20 02:09 arun54321

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.

eromatiya avatar Sep 20 '20 02:09 eromatiya

I can reproduce this issue on arch linux with the regular firefox form the repos

Lunarequest avatar Feb 21 '21 11:02 Lunarequest

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
}

Lunarequest avatar Feb 21 '21 11:02 Lunarequest