diff --git a/data/it.mijorus.gearlever.appdata.xml.in b/data/it.mijorus.gearlever.appdata.xml.in index 153f716..f36f230 100644 --- a/data/it.mijorus.gearlever.appdata.xml.in +++ b/data/it.mijorus.gearlever.appdata.xml.in @@ -20,6 +20,12 @@

An utility to manage AppImages with ease! Gear lever will organize and manage AppImage files for you, generate desktop entries and app metadata, update apps in-place or keep multiple versions side-by-side.

+ + +

- Added checks to detect if Gear Lever is running as a flatpak

+

- Bug fix

+
+

- Improved checking for static update url

diff --git a/meson.build b/meson.build index 7c72f0d..aa01b3a 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('gearlever', - version: '2.0.4', + version: '2.0.5', meson_version: '>= 0.59.0', default_options: [ 'warning_level=2', ], diff --git a/src/AppDetails.py b/src/AppDetails.py index 7311d66..00d7b9d 100644 --- a/src/AppDetails.py +++ b/src/AppDetails.py @@ -356,6 +356,14 @@ def on_secondary_action_button_clicked(self, button: Gtk.Button): except Exception as e: logging.error(str(e)) + @_async + def post_launch_animation(self, restore_as): + GLib.idle_add(lambda: self.secondary_action_button.set_sensitive(False)) + time.sleep(3) + + GLib.idle_add(lambda: self.secondary_action_button.set_label(restore_as)) + GLib.idle_add(lambda: self.secondary_action_button.set_sensitive(True)) + @_async def update_action_button_clicked(self, w): self.app_list_element.set_installed_status(InstalledStatus.UPDATING) diff --git a/src/lib/utils.py b/src/lib/utils.py index bb411ae..8d9fbdf 100644 --- a/src/lib/utils.py +++ b/src/lib/utils.py @@ -170,7 +170,12 @@ def show_message_dialog(header, message, markup=False): def get_osinfo(): - return terminal.sandbox_sh(['cat', '/run/host/os-release']) + os_release_file = "/run/host/os-release" + + if not terminal.is_flatpak(): + os_release_file = "/etc/os-release" + + return terminal.sandbox_sh(['cat', os_release_file]) # thank you mate ❤️ # https://github.com/gtimelog/gtimelog/blob/6e4b07b58c730777dbdb00b3b85291139f8b10aa/src/gtimelog/main.py#L159