Browse Source

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
pull/55/head
DM Cyber Security 1 year ago committed by GitHub
parent
commit
24a53b7a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      linux/build/build

17
linux/build/build

@ -108,13 +108,28 @@ echo "Downloading NoScript extension..." @@ -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..."

Loading…
Cancel
Save