mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 13:14:15 +02:00
snaps -> Improved how the the application verification is done
This commit is contained in:
@@ -101,7 +101,7 @@ def read_installed() -> List[dict]:
|
||||
info_out = new_subprocess(['cat', *['/var/lib/snapd/snap/{}/current/meta/snap.yaml'.format(a['name']) for a in apps]]).stdout
|
||||
|
||||
idx = -1
|
||||
for o in new_subprocess(['grep', '-E', '(summary|type)', '--colour=never'], stdin=info_out).stdout:
|
||||
for o in new_subprocess(['grep', '-E', '(summary|apps)', '--colour=never'], stdin=info_out).stdout:
|
||||
if o:
|
||||
line = o.decode()
|
||||
|
||||
@@ -109,7 +109,7 @@ def read_installed() -> List[dict]:
|
||||
idx += 1
|
||||
apps[idx]['summary'] = line.split(':')[1].strip()
|
||||
else:
|
||||
apps[idx]['type'] = line.split(':')[1].strip()
|
||||
apps[idx]['apps_field'] = True
|
||||
|
||||
return apps
|
||||
|
||||
|
||||
Reference in New Issue
Block a user