diff --git a/apps/BleachBit/description b/apps/BleachBit/description index 9e1910035e..11354ac488 100644 --- a/apps/BleachBit/description +++ b/apps/BleachBit/description @@ -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. diff --git a/apps/BleachBit/install b/apps/BleachBit/install index 45524160db..eef1c89387 100755 --- a/apps/BleachBit/install +++ b/apps/BleachBit/install @@ -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