diff --git a/Wins/MainWin.xaml.cs b/Wins/MainWin.xaml.cs index f978cac..f0421a5 100644 --- a/Wins/MainWin.xaml.cs +++ b/Wins/MainWin.xaml.cs @@ -159,7 +159,7 @@ private async void StartButtonHoldTimer_Tick(object? sender, EventArgs e) await Task.Run(() => { - new BrowserProc(MainPres.BrowserPath, sender == null).ShellRun(Path.GetDirectoryName(MainPres.BrowserPath), ($"{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) @@ -245,7 +245,7 @@ private async void NginxButtonHoldTimer_Tick(object? sender, EventArgs e) await Task.Run(() => { - new NginxProc().ShellRun(Path.GetDirectoryName(MainConst.NginxPath), @$"-c ""{MainConst.NginxConfPath}"""); + new NginxProc().ShellRun(Path.GetDirectoryName(MainConst.NginxPath), @$"-c ""{Path.GetRelativePath(Path.GetDirectoryName(MainConst.NginxPath)!, MainConst.NginxConfPath)}"""); }); while (true)