fix: whitelist /tmp

This commit is contained in:
aclist committed 2026-10-26 19:09:50 +09:00
1 parent c73b07991f
commit 5bee3614bd
1 file changed
+6 -2
+6 -2
View File
@@ -1,7 +1,7 @@
import logging
import subprocess
from dzgui.const.constants import APP_NAME, FLATPAK_APPID, GTK_APP_ID
from dzgui.const.constants import APP_NAME, FLATPAK_APPID, GTK_APP_ID, TMP_PATH
logger = logging.getLogger(APP_NAME)
@@ -18,7 +18,11 @@ def apply_overrides(xdg: dict[str, str]) -> None:
]
subprocess.run([*args], capture_output=True)
for path in xdg.values():
paths: list[str] = []
paths.extend([*xdg.values()])
paths.append(TMP_PATH)
for path in paths:
args = [
"flatpak",
"--user",