Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 9b69200

Browse files
authored
22.04 Beta fixes.
Create .local folders if they don't already exist, change chmod path to .local (I knew I'd miss one), and give Snap removal commands Root permissions.
1 parent 5417f6a commit 9b69200

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

NoFoxGiven.sh

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,31 @@ echo "Extracting..."
1818
tar xjf firefox.tar.bz2
1919
rm -r ./firefox.tar.bz2
2020
echo "Moving files and adding Launcher entry. You will be asked for your sudo pass."
21-
sleep 3
21+
sleep 5
2222
mv ./firefox ~/.local/share/Firefox
2323
#Create /bin file to allow launching through Terminal, whilst still applying KDE Filepicker tweak
24+
mkdir -p ~/.local/bin/
2425
touch ~/.local/bin/firefox
2526
echo "#!/bin/bash" > ~/.local/bin/firefox
2627
echo "GTK_USE_PORTAL=1 ~/.local/share/Firefox/firefox" >> ~/.local/bin/firefox
2728
#Copy Icons and .desktop file to their proper places
2829
sudo rsync -a ./icons /usr/share
29-
sudo mv ./Firefox.desktop ~/.local/share/applications/
30+
mkdir -p ~/.local/share/applications/
31+
mv ./Firefox.desktop ~/.local/share/applications/
3032
rm -r ./icons
31-
chmod +x /usr/share/applications/Firefox.desktop
33+
chmod +x ~/.local/share/applications/Firefox.desktop
3234
echo
3335
echo "Installation complete! Firefox can be located in your home directory, inside .local/share."
3436
echo "Your desktop may refresh at some point once KDE notices the change in application entries."
3537
echo "Proceeding to remove Snap..."
36-
sleep 5
37-
snap remove gtk-common-themes
38-
snap remove bare
39-
snap remove gnome-3-38-2004
40-
snap remove firefox
41-
snap remove core20
42-
snap remove snapd
38+
sleep 7
39+
#Snap commands now require Root permissions, or they'll pop up a Polkit window every time.
40+
sudo snap remove gtk-common-themes
41+
sudo snap remove bare
42+
sudo snap remove gnome-3-38-2004
43+
sudo snap remove firefox
44+
sudo snap remove core20
45+
sudo snap remove snapd
4346
sudo apt purge -y snapd
4447
sudo apt purge -y libsnapd-qt1
4548
rm -rf ~/snap

0 commit comments

Comments
 (0)