From 8fc98d597ab0a76070cd9fd1642ab1646f53efd1 Mon Sep 17 00:00:00 2001 From: oxGorou <98001973+oxGorou@users.noreply.github.com> Date: Tue, 5 May 2026 16:16:40 +0700 Subject: [PATCH] Apply suggested fix to UXTU4Linux/Assets/Modules/updater.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- UXTU4Linux/Assets/Modules/updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UXTU4Linux/Assets/Modules/updater.py b/UXTU4Linux/Assets/Modules/updater.py index e23225f..64f42fb 100644 --- a/UXTU4Linux/Assets/Modules/updater.py +++ b/UXTU4Linux/Assets/Modules/updater.py @@ -86,7 +86,8 @@ def _sudo(*args: str) -> int: restart_service() print("Update complete. Relaunching - please close this window.") - os.execv(sys.executable, [sys.executable, launch]) + subprocess.Popen([sys.executable, launch], start_new_session=True) + return except Exception as e: print(f"Update failed: {e}")