mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复 net8 process启动问题
This commit is contained in:
parent
45c4aae1c9
commit
85dbfa9616
@ -24,7 +24,15 @@ public partial class App : Application
|
||||
}
|
||||
break;
|
||||
case "launchsteam":
|
||||
Process.Start("steam://rungameid/1920960");
|
||||
var psi = new ProcessStartInfo
|
||||
{
|
||||
FileName = "cmd",
|
||||
WindowStyle = ProcessWindowStyle.Hidden,
|
||||
UseShellExecute = false,
|
||||
RedirectStandardOutput = true,
|
||||
Arguments = "/c start steam://rungameid/1920960"
|
||||
};
|
||||
Process.Start(psi);
|
||||
break;
|
||||
}
|
||||
Application.Current.Shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user