Replies: 2 comments
-
Wow thanks 👍🏻 , it was worth going through this repository before as I was about to write a similar script. Here's a suggestion you could add if the user wants to manually delete the profile directory
Also to prevent your comments from becoming headlines here, you should place your script inside a code block in order to get this :
|
Beta Was this translation helpful? Give feedback.
-
Install instructions have been removed from README : 12011c7 And I haven't found these instructions elsewhere. It's a bit disappointing because it's a good alternative to flatpak/AppImage even if the script is still online. For those who are looking for these instructions, here they are : LinuxArch-based distributionsyay -S zen-browser-bin Other Linux distributions (Tarball or AppImage)
bash <(curl -s https://updates.zen-browser.app/install.sh)
bash <(curl https://updates.zen-browser.app/appimage.sh) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I created an uninstaller that I tested on my system and it's working fine. It would be nice if you added it to your host (https://updates.zen-browser.app/install.sh and https://updates.zen-browser.app/uninstall.sh) and to the GitHub instructions of how to remove/uninstall it.
#!/bin/bash
set -euo pipefail
app_name="zen"
literal_name_of_installation_directory=".tarball-installations"
universal_path_for_installation_directory="$HOME/$literal_name_of_installation_directory"
app_installation_directory="$universal_path_for_installation_directory/zen"
local_bin_path="$HOME/.local/bin"
local_application_path="$HOME/.local/share/applications"
app_bin_in_local_bin="$local_bin_path/$app_name"
desktop_in_local_applications="$local_application_path/$app_name.desktop"
icon_path="$app_installation_directory/browser/chrome/icons/default/default128.png"
echo "Uninstalling Zen Browser..."
Remove the executable from local bin
if [ -f "$app_bin_in_local_bin" ]; then
echo "Removing executable from $local_bin_path"
rm "$app_bin_in_local_bin"
else
echo "No executable found in $local_bin_path"
fi
Remove the desktop entry
if [ -f "$desktop_in_local_applications" ]; then
echo "Removing desktop entry from $local_application_path"
rm "$desktop_in_local_applications"
else
echo "No desktop entry found in $local_application_path"
fi
Remove the installation directory
if [ -d "$app_installation_directory" ]; then
echo "Removing application files from $app_installation_directory"
rm -rf "$app_installation_directory"
else
echo "No application directory found at $app_installation_directory"
fi
Remove the installation root directory if it's empty
if [ -d "$universal_path_for_installation_directory" ] && [ "$(ls -A $universal_path_for_installation_directory)" ]; then
echo "Cleaning up $universal_path_for_installation_directory"
rm -rf "$universal_path_for_installation_directory"
else
echo "No tarball installation directory found at $universal_path_for_installation_directory"
fi
echo "Uninstallation complete!"
Beta Was this translation helpful? Give feedback.
All reactions