From 166b5721bb7097370ae286d0fd3e0743c818dc2d Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 11 Mar 2022 09:38:53 -0300 Subject: [PATCH] [appimage] fix: info dialog is displaying attributes related to the installation after the application has been removed (search) --- CHANGELOG.md | 5 ++++- bauh/gems/appimage/controller.py | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f17c9148..d9e021b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,7 +44,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - General - not accepting blank root passwords [#235](https://github.com/vinifmor/bauh/issues/235) - human-readable sizes (packages, files, updates, ...) - + +- AppImage + - info: displaying attributes related to the installation after the application has been removed (search) + - UI - some package icons would not appear if there is no URL associated with them diff --git a/bauh/gems/appimage/controller.py b/bauh/gems/appimage/controller.py index 0c431837..9b13c8a4 100644 --- a/bauh/gems/appimage/controller.py +++ b/bauh/gems/appimage/controller.py @@ -419,6 +419,11 @@ class AppImageManager(SoftwareManager): def get_info(self, pkg: AppImage) -> dict: data = pkg.get_data_to_cache() + if not pkg.installed: + for key in ('install_dir', 'symlink', 'icon_path'): + if key in data: + del data[key] + if data.get('url_download'): size = self.http_client.get_content_length(data['url_download']) if size: