Skip to content

Commit

Permalink
BleachBit: use distro package if new enough
Browse files Browse the repository at this point in the history
technically this already happens on bookworm/jammy since the distro package is newer than the one we download but its best to not waste any time downloading a package that goes unused
  • Loading branch information
theofficialgman committed Oct 4, 2023
1 parent ab511f1 commit 8e7c30a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/BleachBit/description
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BleachBit is a free and open-source disk space cleaner, privacy manager, and computer system optimizer. Not outdated like the APT repo's BleachBit.
BleachBit is a free and open-source disk space cleaner, privacy manager, and computer system optimizer.

Like CCleaner on Windows, BleachBit frees space by deleting unimportant files and helps maintain your privacy by deleting sensitive data.
And, just like CCleaner, there’s more you can do with BleachBit than just clicking a single button.
Expand Down
13 changes: 10 additions & 3 deletions apps/BleachBit/install
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@

version=4.4.2-0

install_packages https://download.bleachbit.org/bleachbit_${version}_all_debian11.deb || exit 1
if ! package_is_new_enough bleachbit 4.4.2-0 ;then
install_packages https://download.bleachbit.org/bleachbit_${version}_all_debian11.deb || exit 1
else
install_packages bleachbit || exit 1
fi

# Move BleachBit to Accessories category
sudo sed -i s/"Categories=System;FileTools;GTK;"/"Categories=Utility"/g /usr/share/applications/org.bleachbit.BleachBit.desktop /usr/share/applications/org.bleachbit.BleachBit-root.desktop || :
# Move BleachBit to Accessories category on PiOS
if [ -f /etc/xdg/menus/lxde-pi-applications.menu ];then
sudo sed -i s/"Categories=System;FileTools;GTK;"/"Categories=Utility"/g /usr/share/applications/org.bleachbit.BleachBit.desktop /usr/share/applications/org.bleachbit.BleachBit-root.desktop
fi
true

0 comments on commit 8e7c30a

Please sign in to comment.