summaryrefslogtreecommitdiff
path: root/backend/decky_loader/plugin/sandboxed_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/decky_loader/plugin/sandboxed_plugin.py')
-rw-r--r--backend/decky_loader/plugin/sandboxed_plugin.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/decky_loader/plugin/sandboxed_plugin.py b/backend/decky_loader/plugin/sandboxed_plugin.py
index 083a6749..07b04e7d 100644
--- a/backend/decky_loader/plugin/sandboxed_plugin.py
+++ b/backend/decky_loader/plugin/sandboxed_plugin.py
@@ -7,6 +7,7 @@ from sys import exit, path as syspath, modules as sysmodules
from traceback import format_exc
from asyncio import (get_event_loop, new_event_loop,
set_event_loop, sleep)
+from setproctitle import setproctitle, setthreadtitle
from .messages import SocketResponseDict, SocketMessageType
from ..localplatform.localsocket import LocalSocket
@@ -48,6 +49,9 @@ class SandboxedPlugin:
signal(SIGINT, SIG_IGN)
signal(SIGTERM, SIG_IGN)
+ setproctitle(f"{self.name} ({self.file})")
+ setthreadtitle(self.name)
+
set_event_loop(new_event_loop())
if self.passive:
return