From f6f66e9dbd03285dfa4598889057f4692a41e8ad Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 13 Sep 2019 22:11:13 -0300 Subject: [PATCH] arch: handling packages with a desktop entry as applications --- bauh/gems/arch/model.py | 2 +- bauh/gems/flatpak/model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bauh/gems/arch/model.py b/bauh/gems/arch/model.py index c62a6eba..531573f7 100644 --- a/bauh/gems/arch/model.py +++ b/bauh/gems/arch/model.py @@ -64,7 +64,7 @@ class ArchPackage(SoftwarePackage): return resource.get_path('img/arch.png', ROOT_DIR) # TODO change icon when from mirrors def is_application(self): - return True + return self.can_be_run() def supports_disk_cache(self): return True diff --git a/bauh/gems/flatpak/model.py b/bauh/gems/flatpak/model.py index 6a1dbed8..49b9e563 100644 --- a/bauh/gems/flatpak/model.py +++ b/bauh/gems/flatpak/model.py @@ -66,4 +66,4 @@ class FlatpakApplication(SoftwarePackage): return self.installed and not self.runtime def get_publisher(self): - return 'Flathub' + return self.origin