mirror of
https://github.com/PurpleI2P/i2pdbrowser
synced 2025-01-27 15:04:15 +00:00
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
This commit is contained in:
parent
ce06fc8cf6
commit
24a53b7a50
@ -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
|
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..."
|
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 preferences/* ../browser/
|
||||||
cp -r profile/* ../browser/data/
|
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
|
if [ "$language" = "ru" ]; then
|
||||||
|
mkdir -p ../browser/.mozilla/firefox/
|
||||||
cp -r profile-ru/* ../browser/data/
|
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
|
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
|
fi
|
||||||
|
|
||||||
echo "Copying Desktop launch scripts..."
|
echo "Copying Desktop launch scripts..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user