def update_and_stream(app_ref: str): """ Updates the app reference and streams Flatpak output, :param app_ref: :return: """ return system.cmd_to_subprocess([BASE_CMD, 'update', '-y', app_ref])
def uninstall_and_stream(app_ref: str): """ Removes the app by its reference :param app_ref: :return: """ return system.cmd_to_subprocess([BASE_CMD, 'uninstall', app_ref, '-y'])
def install_and_stream(app_id: str, origin: str): return system.cmd_to_subprocess([BASE_CMD, 'install', origin, app_id, '-y'])