From b95c06a5dced12a9ebd8e5202ad8abe4313b0fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Kaan=20K=C3=B6se?= Date: Tue, 7 Jan 2025 01:13:34 +0100 Subject: [PATCH] Fix startup launch for Mail. --- Wino.Server/App.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Wino.Server/App.xaml.cs b/Wino.Server/App.xaml.cs index f638afcb..066e462f 100644 --- a/Wino.Server/App.xaml.cs +++ b/Wino.Server/App.xaml.cs @@ -173,7 +173,8 @@ namespace Wino.Server protected override async void OnStartup(StartupEventArgs e) { // Same server code runs for both Mail and Calendar. - var winoAppTypeParameter = e.Args[2]; + + string winoAppTypeParameter = e.Args.Length > 0 ? e.Args[e.Args.Length - 1] : "Mail"; WinoServerType = winoAppTypeParameter == "Mail" ? WinoAppType.Mail : WinoAppType.Calendar;