diff --git a/README.md b/README.md index 18a876ed..3f5a926f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ This project has an official Twitter account ( **@bauh4linux** ) so people can s - **flatpak**: to be able to handle Flatpak applications - **snapd**: to be able to handle Snap applications - **pacman**: to be able to handle AUR packages -- **wget**: to be able to handle AUR packages +- **wget**: to be able to handle AppImage and AUR packages +- **sqlite3**: to be able to handle AppImage applications - **git**: to be able to downgrade AUR packages - **aria2**: faster AppImage and AUR source files downloading ( reduces packages installation time. More information below. ) - **libappindicator3**: for the **tray mode** in GTK3 desktop environments diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index d14b4b41..76fd8c1c 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -340,18 +340,12 @@ class AppImageManager(SoftwareManager): self.enabled = enabled def _is_sqlite3_available(self): - try: - new_subprocess(['sqlite3', '--version']) - return True - except FileNotFoundError: - return False + res = run_cmd('which sqlite3') + return res and not res.strip().startswith('which ') def _is_wget_available(self): - try: - new_subprocess(['wget', '--version']) - return True - except FileNotFoundError: - return False + res = run_cmd('which wget') + return res and not res.strip().startswith('which ') def can_work(self) -> bool: return self._is_sqlite3_available() and self._is_wget_available()