Fix subprocess will create a terminal window when Minecraft is running.
Add a daemon to refresh account token.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import json
|
||||
import subprocess
|
||||
import sys
|
||||
import textwrap
|
||||
import threading
|
||||
import traceback
|
||||
@@ -827,6 +828,11 @@ class TestPage(QWidget):
|
||||
cwd=game_dir,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT,
|
||||
creationflags=(
|
||||
subprocess.CREATE_NO_WINDOW
|
||||
if sys.platform == "win32"
|
||||
else 0
|
||||
),
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
errors="replace",
|
||||
|
||||
Reference in New Issue
Block a user