diff options
| author | Marco Rodolfi <marco.rodolfi@tuta.io> | 2023-08-26 19:00:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-26 19:00:02 +0200 |
| commit | caf4d75a06289cdfee6fed34d6db03ac1ad0126d (patch) | |
| tree | 4314f3e0615ee752b9c665823b1f6d17cb0f78eb /backend/updater.py | |
| parent | a43e4328df8e2d4e2c1be0ab7f0cd7ea59c48ce2 (diff) | |
| download | decky-loader-caf4d75a06289cdfee6fed34d6db03ac1ad0126d.tar.gz decky-loader-caf4d75a06289cdfee6fed34d6db03ac1ad0126d.zip | |
Fix for SELinux handling logic (#529)v2.10.5-pre1
* Fix for SELinux handling logic
The old procedure was crashing with signal 9 SIGKILL, this should fix that problem
Diffstat (limited to 'backend/updater.py')
| -rw-r--r-- | backend/updater.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/updater.py b/backend/updater.py index 170cfa40..6b38dd25 100644 --- a/backend/updater.py +++ b/backend/updater.py @@ -209,8 +209,9 @@ class Updater: 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 {await process.wait()}") logger.info("Updated loader installation.") await tab.evaluate_js("window.DeckyUpdater.finish()", False, False) |
