Skip to content

Commit

Permalink
fixed missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
mijorus committed Aug 4, 2024
1 parent fd65900 commit 7a7c406
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions data/it.mijorus.gearlever.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<p>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.</p>
</description>
<releases>
<release type="stable" version="2.0.5" date="2024-07-04:00:00Z">
<description>
<p>- Added checks to detect if Gear Lever is running as a flatpak</p>
<p>- Bug fix</p>
</description>
</release>
<release type="stable" version="2.0.4" date="2024-07-04:00:00Z">
<description>
<p>- Improved checking for static update url</p>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('gearlever',
version: '2.0.4',
version: '2.0.5',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2',
],
Expand Down
8 changes: 8 additions & 0 deletions src/AppDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion src/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a7c406

Please sign in to comment.