Fix: Flatpak 1.2.X application names not showing properly

This commit is contained in:
Vinicius Moreira
2019-06-18 18:47:31 -03:00
parent 4c55e7a617
commit 10e69d1c3c
2 changed files with 11 additions and 8 deletions

View File

@@ -9,6 +9,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Management panel shows update commands streams - Management panel shows update commands streams
- Management panel status label is "orange" now - Management panel status label is "orange" now
### Fixes
- Application name not properly showing for Flatpak 1.2.X
## [0.1.0] - 2019-06-14 ## [0.1.0] - 2019-06-14
### Features ### Features
- System tray icon. - System tray icon.

View File

@@ -23,7 +23,7 @@ def app_str_to_json(line: str, version: str) -> dict:
app['name'] = ref_data[0].split('.')[-1] app['name'] = ref_data[0].split('.')[-1]
app['version'] = None app['version'] = None
elif '1.2' <= version < '1.3': elif '1.2' <= version < '1.3':
app = {'name': app_array[0][1].split('.')[-1], app = {'name': app_array[1].strip().split('.')[-1],
'id': app_array[1], 'id': app_array[1],
'version': app_array[2], 'version': app_array[2],
'branch': app_array[3], 'branch': app_array[3],