summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpublic/thesiah.sh14
-rwxr-xr-xstatic/thesiah.sh14
2 files changed, 18 insertions, 10 deletions
diff --git a/public/thesiah.sh b/public/thesiah.sh
index 3aff39f..4260782 100755
--- a/public/thesiah.sh
+++ b/public/thesiah.sh
@@ -320,22 +320,26 @@ installffaddons() {
}
librewolfsetup() {
- # All this below to get Librewolf installed with add-ons and non-bad settings.
whiptail --infobox "Setting browser privacy settings and add-ons..." 7 60
browserdir="/home/$name/.librewolf"
profilesini="$browserdir/profiles.ini"
- # Start librewolf headless so it generates a profile. Then get that profile in a variable.
sudo -u "$name" librewolf --headless >/dev/null 2>&1 &
sleep 1
profile="$(sed -n "/Default=.*.default-default/ s/.*=//p" "$profilesini")"
pdir="$browserdir/$profile"
+ siprofile="si.default-default"
+ sipdir="$browserdir/$siprofile"
- [ -d "$pdir" ] && makeuserjs
- [ -d "$pdir" ] && installffaddons
+ if [ -d "$pdir" ]; then
+ mv "$pdir" "$sipdir"
+ sed -i "s/$profile/$siprofile/g" "$profilesini"
+
+ makeuserjs "$sipdir"
+ installffaddons "$sipdir"
+ fi
- # Kill the now unnecessary librewolf instance.
pkill -u "$name" librewolf
}
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 3aff39f..4260782 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -320,22 +320,26 @@ installffaddons() {
}
librewolfsetup() {
- # All this below to get Librewolf installed with add-ons and non-bad settings.
whiptail --infobox "Setting browser privacy settings and add-ons..." 7 60
browserdir="/home/$name/.librewolf"
profilesini="$browserdir/profiles.ini"
- # Start librewolf headless so it generates a profile. Then get that profile in a variable.
sudo -u "$name" librewolf --headless >/dev/null 2>&1 &
sleep 1
profile="$(sed -n "/Default=.*.default-default/ s/.*=//p" "$profilesini")"
pdir="$browserdir/$profile"
+ siprofile="si.default-default"
+ sipdir="$browserdir/$siprofile"
- [ -d "$pdir" ] && makeuserjs
- [ -d "$pdir" ] && installffaddons
+ if [ -d "$pdir" ]; then
+ mv "$pdir" "$sipdir"
+ sed -i "s/$profile/$siprofile/g" "$profilesini"
+
+ makeuserjs "$sipdir"
+ installffaddons "$sipdir"
+ fi
- # Kill the now unnecessary librewolf instance.
pkill -u "$name" librewolf
}