diff options
Diffstat (limited to 'plugin_loader/browser.py')
| -rw-r--r-- | plugin_loader/browser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin_loader/browser.py b/plugin_loader/browser.py index 7fc8773b..ffec26b3 100644 --- a/plugin_loader/browser.py +++ b/plugin_loader/browser.py @@ -9,6 +9,7 @@ from concurrent.futures import ProcessPoolExecutor from asyncio import get_event_loop from time import time from hashlib import sha256 +from subprocess import Popen class PluginInstallContext: def __init__(self, gh_url, version, hash) -> None: @@ -35,6 +36,8 @@ class PluginBrowser: zip_file = ZipFile(zip) zip_file.extractall(self.plugin_path) rename(path.join(self.plugin_path, zip_file.namelist()[0]), path.join(self.plugin_path, name)) + Popen(["chown", "-R", "deck:deck", self.plugin_path]) + Popen(["chmod", "-R", "555", self.plugin_path]) return True async def _install(self, artifact, version, hash): |
