mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 02:44:16 +02:00
[appimage] improvement: faster reading of installed applications
This commit is contained in:
@@ -25,6 +25,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
<img src="https://raw.githubusercontent.com/vinifmor/bauh-files/master/pictures/releases/0.9.22/missing_type_dep.png">
|
<img src="https://raw.githubusercontent.com/vinifmor/bauh-files/master/pictures/releases/0.9.22/missing_type_dep.png">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
- AppImage
|
||||||
|
- faster reading of installed applications (subprocess call replaced by Python call)
|
||||||
|
|
||||||
- Web
|
- Web
|
||||||
- the Electron builds cache directory has been moved to the environment directory `~/.local/share/bauh/web/env/electron`
|
- the Electron builds cache directory has been moved to the environment directory `~/.local/share/bauh/web/env/electron`
|
||||||
|
|
||||||
|
|||||||
@@ -254,11 +254,11 @@ class AppImageManager(SoftwareManager):
|
|||||||
res = SearchResult(installed_apps, [], 0)
|
res = SearchResult(installed_apps, [], 0)
|
||||||
|
|
||||||
if os.path.exists(INSTALLATION_DIR):
|
if os.path.exists(INSTALLATION_DIR):
|
||||||
installed = run_cmd(f'ls {INSTALLATION_DIR}/*/data.json', print_error=False)
|
installed = glob.glob(f'{INSTALLATION_DIR}/*/data.json')
|
||||||
|
|
||||||
if installed:
|
if installed:
|
||||||
names = set()
|
names = set()
|
||||||
for path in installed.split('\n'):
|
for path in installed:
|
||||||
if path:
|
if path:
|
||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
app = AppImage(installed=True, i18n=self.i18n, custom_actions=self.custom_app_actions, **json.loads(f.read()))
|
app = AppImage(installed=True, i18n=self.i18n, custom_actions=self.custom_app_actions, **json.loads(f.read()))
|
||||||
|
|||||||
Reference in New Issue
Block a user