mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 18:51:59 +00:00
move the chown
This commit is contained in:
+4
-3
@@ -56,12 +56,15 @@ basicConfig(
|
|||||||
|
|
||||||
logger = getLogger("Main")
|
logger = getLogger("Main")
|
||||||
|
|
||||||
async def chown_plugin_dir():
|
def chown_plugin_dir():
|
||||||
code_chown = call(["chown", "-R", USER+":"+GROUP, CONFIG["plugin_path"]])
|
code_chown = call(["chown", "-R", USER+":"+GROUP, CONFIG["plugin_path"]])
|
||||||
code_chmod = call(["chmod", "-R", "555", CONFIG["plugin_path"]])
|
code_chmod = call(["chmod", "-R", "555", CONFIG["plugin_path"]])
|
||||||
if code_chown != 0 or code_chmod != 0:
|
if code_chown != 0 or code_chmod != 0:
|
||||||
logger.error(f"chown/chmod exited with a non-zero exit code (chown: {code_chown}, chmod: {code_chmod})")
|
logger.error(f"chown/chmod exited with a non-zero exit code (chown: {code_chown}, chmod: {code_chmod})")
|
||||||
|
|
||||||
|
if CONFIG["chown_plugin_path"] == True:
|
||||||
|
chown_plugin_dir()
|
||||||
|
|
||||||
class PluginManager:
|
class PluginManager:
|
||||||
def __init__(self, loop) -> None:
|
def __init__(self, loop) -> None:
|
||||||
self.loop = loop
|
self.loop = loop
|
||||||
@@ -87,8 +90,6 @@ class PluginManager:
|
|||||||
self.loop.create_task(start_systemd_unit(REMOTE_DEBUGGER_UNIT))
|
self.loop.create_task(start_systemd_unit(REMOTE_DEBUGGER_UNIT))
|
||||||
else:
|
else:
|
||||||
self.loop.create_task(stop_systemd_unit(REMOTE_DEBUGGER_UNIT))
|
self.loop.create_task(stop_systemd_unit(REMOTE_DEBUGGER_UNIT))
|
||||||
if CONFIG["chown_plugin_path"] == True:
|
|
||||||
await chown_plugin_dir()
|
|
||||||
self.loop.create_task(self.loader_reinjector())
|
self.loop.create_task(self.loader_reinjector())
|
||||||
self.loop.create_task(self.load_plugins())
|
self.loop.create_task(self.load_plugins())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user