Skip to content

Commit 535af4f

Browse files
committed
perf(): 启动内核时设置一个环境变量,以表示是由GUI启动的进程
1 parent bb701a5 commit 535af4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MainGui.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,9 @@ private async void StartSubsCheckProcess()
16491649
// 获取当前应用程序目录
16501650
string executablePath = Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath);
16511651
string subsCheckPath = Path.Combine(executablePath, "subs-check.exe");
1652+
// 设置一个环境变量以表明是有GUI启动的
1653+
1654+
Environment.SetEnvironmentVariable("START_FROM_GUI", "true");
16521655

16531656
// 检查是否有其他subs-check.exe进程正在运行,并强制结束它们
16541657
try

0 commit comments

Comments
 (0)