From a968b5a70306b3051a8998c3203959d505de5228 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 13 Jun 2019 19:08:18 -0300 Subject: [PATCH] Support for flatpak 1.2 --- README.md | 1 + core/flatpak.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6784c034..f154c754 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ It has also a management window allowing the user to see all installed apllicati - Python >= 3.5 - qt5 packages - libappindicator3 (for GTK3 desktop environments) +- python3-venv (for Debian based distros -> Ubuntu, Linux Mint, ...) ## Installation script You can install the application without compromising your system via the provided installation script called 'sandbox_installer.py'. diff --git a/core/flatpak.py b/core/flatpak.py index 2e3dbb86..094e6740 100755 --- a/core/flatpak.py +++ b/core/flatpak.py @@ -13,7 +13,7 @@ def app_str_to_json(line: str, version: str) -> dict: 'id': app_array[1], 'version': app_array[2], 'branch': app_array[3]} - elif '1.0' <= version < '1.3': + elif '1.0' <= version < '1.1': app = {'ref': app_array[0], 'options': app_array[1]} ref_data = app['ref'].split('/') @@ -22,6 +22,13 @@ def app_str_to_json(line: str, version: str) -> dict: app['branch'] = ref_data[2] app['name'] = ref_data[0].split('.')[-1] app['version'] = None + elif '1.2' <= version < '1.3': + app = {'name': app_array[0][1].split('.')[-1], + 'id': app_array[1], + 'version': app_array[2], + 'branch': app_array[3], + 'arch': app_array[4], + 'origin': app_array[5]} else: raise Exception('Unsupported version')