diff --git a/VPet.Solution/App.xaml.cs b/VPet.Solution/App.xaml.cs index 8e9780c..8361929 100644 --- a/VPet.Solution/App.xaml.cs +++ b/VPet.Solution/App.xaml.cs @@ -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();