diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-09-12 23:34:52 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-09-12 23:34:52 +0900 |
| commit | 5be4f5022f1a4ac19d7785d734da3ff7ac7eece6 (patch) | |
| tree | b851386fa453f9b8bbce1b8b4c8e996262601b96 | |
| parent | 4897273038eeaadd18a324f4da32e6cb5d3a44ae (diff) | |
Init
| -rwxr-xr-x | public/thesiah.sh | 14 | ||||
| -rwxr-xr-x | static/thesiah.sh | 14 |
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 } |
