1.1.2 -> 1.1.3 第17次更新

This commit is contained in:
Space Time 2024-10-21 00:33:23 +08:00
parent 0c76f6ed59
commit c680f6e3f8

View File

@ -158,7 +158,7 @@ public partial class MainWin : Window
await Task.Run(() =>
{
new BrowserProc(MainPres.BrowserPath, sender == null).ShellRun(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, ($"{CealArgs} {MainPres.ExtraArgs}").Trim());
new BrowserProc(MainPres.BrowserPath, sender == null).ShellRun(Path.GetDirectoryName(MainPres.BrowserPath), ($"{CealArgs} {MainPres.ExtraArgs}").Trim());
});
}
private void NginxButton_Click(object sender, RoutedEventArgs e)
@ -244,7 +244,7 @@ public partial class MainWin : Window
await Task.Run(() =>
{
new NginxProc().ShellRun(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, @$"-c ""{MainConst.NginxConfPath}""");
new NginxProc().ShellRun(Path.GetDirectoryName(MainConst.NginxPath), @$"-c ""{MainConst.NginxConfPath}""");
});
while (true)
@ -309,7 +309,7 @@ public partial class MainWin : Window
await Task.Run(() =>
{
new MihomoProc().ShellRun(AppDomain.CurrentDomain.SetupInformation.ApplicationBase!, @$"-d ""{Path.GetDirectoryName(MainConst.MihomoConfPath)}""");
new MihomoProc().ShellRun(Path.GetDirectoryName(MainConst.MihomoPath), @$"-d ""{Path.GetDirectoryName(MainConst.MihomoConfPath)}""");
});
while (true)