Skip to content

Commit 74c2bc4

Browse files
committed
Small fixes
1 parent 179c82e commit 74c2bc4

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

biglinux-webapps/usr/bin/big-webapps

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,6 @@ elif [ $command == "remove" ]; then
6464
if [ -f $filename ]; then
6565
rm $filename
6666

67-
# Check if browser matches any of the specified browsers
68-
if [[ "$browser" == "firefox" || "$browser" == "librewolf" || "$browser" == "flatpak-firefox" || "$browser" == "flatpak-librewolf" ]]; then
69-
# Firefox and Librewolf always remove the profile folder
70-
filename=${filename//.desktop}
71-
if [[ -d "$HOME/.bigwebapps/$browser/$filename" ]]; then
72-
rm -rf "$HOME/.bigwebapps/$browser/$filename"
73-
fi
74-
fi
75-
7667
echo "WebApp successfully removed!"
7768
exit 0
7869
else
@@ -96,6 +87,14 @@ elif [ $command = "remove-with-folder" ]; then
9687
# Verify if $browser variable not null and $profile variable not null and folder $HOME/.bigwebapps/$browser/$profile exists
9788
if [[ -n $browser ]] && [[ -n $profile ]] && [[ -d $HOME/.bigwebapps/$browser/$profile ]]; then
9889
rm -rf $HOME/.bigwebapps/$browser/$profile
90+
else
91+
if [[ "$browser" == "firefox" || "$browser" == "librewolf" || "$browser" == "flatpak-firefox" || "$browser" == "flatpak-librewolf" ]]; then
92+
# Firefox and Librewolf always remove the profile folder
93+
filename=${filename//.desktop}
94+
if [[ -d "$HOME/.bigwebapps/$browser/$filename" ]]; then
95+
rm -rf "$HOME/.bigwebapps/$browser/$filename"
96+
fi
97+
fi
9998
fi
10099

101100
echo "WebApp successfully removed!"

biglinux-webapps/usr/share/biglinux/webapps/webapps/utils/command_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def remove_webapp(self, webapp, delete_folder=False):
140140
if delete_folder:
141141
command = f"big-webapps remove-with-folder '{webapp.app_file}' '{webapp.browser}' '{webapp.app_profile}'"
142142
else:
143-
command = f"big-webapps remove '{webapp.app_file}'"
143+
command = f"big-webapps remove '{webapp.app_file}' '{webapp.browser}' '{webapp.app_profile}'"
144144

145145
output = self.execute_command(command)
146146

0 commit comments

Comments
 (0)