From 24a53b7a5091ff126d3872c421f9056bdac0c42a Mon Sep 17 00:00:00 2001 From: DM Cyber Security <128435685+dmcys@users.noreply.github.com> Date: Mon, 8 May 2023 15:23:09 -0400 Subject: [PATCH] fix profile init error / added profile manager option Fixing the error of unable locate default profile and added the profile manager to show multiples profiles with multiples languages on init --- linux/build/build | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/linux/build/build b/linux/build/build index 4a5eb83..bafc5ce 100755 --- a/linux/build/build +++ b/linux/build/build @@ -108,13 +108,28 @@ echo "Downloading NoScript extension..." curl -L -f -# -o ../browser/browser/extensions/{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi https://addons.mozilla.org/firefox/downloads/file/4002416/noscript-11.4.11.xpi echo "Adding standard configs..." +mkdir -p ../browser/.mozilla/firefox/ +echo -ne -n -e "[Profile2]\nName=profile-ru\nIsRelative=1\nPath=profile-ru\n[Profile1]\nName=profile-en\nIsRelative=1\nPath=profile-en\n[Profile0]\nName=profile\nIsRelative=1\nPath=profile\n[General]\nStartWithLastProfile=1\nVersion=2\nName=Profile-ru\nIsRelative=1\nPath=profile-ru" > ../browser/.mozilla/firefox/profiles.ini cp -r preferences/* ../browser/ cp -r profile/* ../browser/data/ +cp -r profile ../browser/.mozilla/firefox/ +cp -r profile-ru/ ../browser/.mozilla/firefox/ +cp -r profile-en/ ../browser/.mozilla/firefox/ if [ "$language" = "ru" ]; then + mkdir -p ../browser/.mozilla/firefox/ cp -r profile-ru/* ../browser/data/ + cp -r profile ../browser/.mozilla/firefox/ + cp -r profile-en/ ../browser/.mozilla/firefox/ + cp -r profile-ru/ ../browser/.mozilla/firefox/ + echo -ne -n -e "[Profile2]\nName=profile-ru\nIsRelative=1\nPath=profile-ru\n[Profile1]\nName=profile-en\nIsRelative=1\nPath=profile-en\n[Profile0]\nName=profile\nIsRelative=1\nPath=profile\n[General]\nStartWithLastProfile=1\nVersion=2\nName=Profile-ru\nIsRelative=1\nPath=profile-ru" > ../browser/.mozilla/firefox/profiles.ini else - cp -r profile-en/* ../browser/data/ + mkdir ../browser/.mozilla/ + cp -r profile-en/ ../browser/data/ + cp -r profile ../browser/.mozilla/firefox/ + cp -r profile-ru/ ../browser/.mozilla/firefox/ + cp -r profile-en/ ../browser/.mozilla/firefox/ + echo -ne -n -e "[Profile2]\nName=profile-ru\nIsRelative=1\nPath=profile-ru\n[Profile1]\nName=profile-en\nIsRelative=1\nPath=profile-en\n[Profile0]\nName=profile\nIsRelative=1\nPath=profile\n[General]\nStartWithLastProfile=1\nVersion=2\nName=Profile-ru\nIsRelative=1\nPath=profile-ru" > ../browser/.mozilla/firefox/profiles.ini fi echo "Copying Desktop launch scripts..."