Uninstall selected app

This commit is contained in:
Vinícius Moreira
2019-06-25 11:48:28 -03:00
committed by GitHub
parent e054186d69
commit 9d6187b0a0
11 changed files with 330 additions and 127 deletions

View File

@@ -81,5 +81,14 @@ def update_and_stream(app_ref: str):
return system.stream_cmd(['flatpak', 'update', '-y', app_ref])
def uninstall_and_stream(app_ref: str):
"""
Removes the app by its reference
:param app_ref:
:return:
"""
return system.stream_cmd(['flatpak', 'uninstall', app_ref, '-y'])
def list_updates_as_str():
return system.run_cmd('flatpak update', ignore_return_code=True)