diff --git a/backend/updater.py b/backend/updater.py index 170cfa40a..c17c01c3c 100644 --- a/backend/updater.py +++ b/backend/updater.py @@ -209,8 +209,9 @@ async def do_update(self): shutil.move(path.join(getcwd(), download_temp_filename), path.join(getcwd(), download_filename)) chmod(path.join(getcwd(), download_filename), 777, False) if get_selinux(): - from subprocess import call - call(["chcon", "-t", "bin_t", path.join(getcwd(), download_filename)]) + from asyncio.subprocess import create_subprocess_exec + process = await create_subprocess_exec(["chcon", "-t", "bin_t", path.join(getcwd(), download_filename)]) + logger.info(f"Setting the executable flag with chcon returned {process.returncode}") logger.info("Updated loader installation.") await tab.evaluate_js("window.DeckyUpdater.finish()", False, False)