From a205c7cca8fb1cc520635f732d48403c7306a66f Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Fri, 25 Sep 2020 11:15:28 -0300 Subject: [PATCH] [appimage] fix -> 'Checking symlinks' initial task hanging if an installed AppImage data does not contain the installed directory field --- CHANGELOG.md | 4 +++- bauh/gems/appimage/worker.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c69ac98b..7d1b9eed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [0.9.8] ### Fixes - Arch - - info window: not displaying all installed files + - info window: not displaying all installed files +- AppImage + - "Checking symlinks" initial task hanging if an installed AppImage data does not contain the installed directory field ('install_dir') ## [0.9.7] 2020-09-11 ### Features diff --git a/bauh/gems/appimage/worker.py b/bauh/gems/appimage/worker.py index 8936c52d..5edbd9dd 100644 --- a/bauh/gems/appimage/worker.py +++ b/bauh/gems/appimage/worker.py @@ -190,7 +190,11 @@ class SymlinksVerifier(Thread): data = None if data and not data.get('symlink'): + if not data.get('install_dir'): + data['install_dir'] = '/'.join(json_file.split('/')[0:-1]) + app = AppImage(**data, i18n=self.i18n) + file_path = util.find_appimage_file(app.install_dir) if file_path: