pluralplay:FlClashX 加入无窗口重启核心命令

pluralplay 说明 0.5.5 正在构建,FlClashX --restart-core 可调用运行中 App 重启核心,不开窗口或第二实例,保留配置与设置。退出码区分成功、失败、未运行和无响应;Windows GUI 程序需显式等待进程才能读取退出码。

作者原文

Added in 0.5.5, building now: FlClashX --restart-core restarts the Core of the running app, same as the button on the dashboard. No window, no second instance, the profile and settings stay as they are.

Exit codes: 0 restarted, 1 restart failed, 2 FlClashX is not running, 3 no answer.

On Windows the exe is a GUI app, so to wait for the exit code use start /wait FlClashX.exe --restart-core (cmd) or Start-Process FlClashX.exe --restart-core -Wait -PassThru (PowerShell).