diff --git a/src/XIVLauncher.Common/EnvironmentSettings.cs b/src/XIVLauncher.Common/EnvironmentSettings.cs index 24c11be5b..68caf8f40 100644 --- a/src/XIVLauncher.Common/EnvironmentSettings.cs +++ b/src/XIVLauncher.Common/EnvironmentSettings.cs @@ -10,6 +10,7 @@ public static class EnvironmentSettings public static bool IsNoRunas => CheckEnvBool("XL_NO_RUNAS"); public static bool IsIgnoreSpaceRequirements => CheckEnvBool("XL_NO_SPACE_REQUIREMENTS"); public static bool IsOpenSteamMinimal => CheckEnvBool("XL_OPEN_STEAM_MINIMAL"); + public static bool IsSilent => CheckEnvBool("XL_SILENT"); private static bool CheckEnvBool(string var) => bool.Parse(System.Environment.GetEnvironmentVariable(var) ?? "false"); } } diff --git a/src/XIVLauncher/App.xaml.cs b/src/XIVLauncher/App.xaml.cs index 5cb605b6e..d9b7ede43 100644 --- a/src/XIVLauncher/App.xaml.cs +++ b/src/XIVLauncher/App.xaml.cs @@ -422,7 +422,14 @@ private void App_OnStartup(object sender, StartupEventArgs e) Log.Information("Starting update check..."); _updateWindow = new UpdateLoadingDialog(); - _updateWindow.Show(); + if (!EnvironmentSettings.IsSilent) + { + _updateWindow.Show(); + } + else + { + App.Settings.AutologinEnabled = true + } var updateMgr = new Updates(); updateMgr.OnUpdateCheckFinished += OnUpdateCheckFinished;