diff --git a/Core/LocalAdmin.cs b/Core/LocalAdmin.cs index f421c94..d95ab7f 100644 --- a/Core/LocalAdmin.cs +++ b/Core/LocalAdmin.cs @@ -595,9 +595,7 @@ private static void SetupExitHandlers() AppDomainHandler.Handler.Setup(); if (OperatingSystem.IsWindows()) - { WindowsHandler.Handler.Setup(); - } else if (OperatingSystem.IsLinux()) { #if LINUX_SIGNALS diff --git a/IO/Config.cs b/IO/Config.cs index 046ccfc..746e999 100644 --- a/IO/Config.cs +++ b/IO/Config.cs @@ -13,8 +13,8 @@ public class Config public bool LaLiveViewUseUtc; public bool LaShowStdoutStderr; - public bool LaNoSetCursor = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); - public bool EnableTrueColor = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); + public bool LaNoSetCursor = OperatingSystem.IsLinux(); + public bool EnableTrueColor = OperatingSystem.IsLinux(); public bool EnableLaLogs = true; public bool LaLogsUseUtc; public bool LaLogsUseZForUtc; diff --git a/IO/PathManager.cs b/IO/PathManager.cs index 33c4ee8..0d1effc 100644 --- a/IO/PathManager.cs +++ b/IO/PathManager.cs @@ -45,10 +45,10 @@ private static string GetSpecialFolderPath() { CorrectPathFound = true; - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + if (OperatingSystem.IsLinux()) return path + Path.DirectorySeparatorChar + ".config" + Path.DirectorySeparatorChar; - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + if (OperatingSystem.IsWindows()) return path + Path.DirectorySeparatorChar + "AppData" + Path.DirectorySeparatorChar + "Roaming" + Path.DirectorySeparatorChar; ConsoleUtil.WriteLine("Failed to get special folder path - unsupported platform!", ConsoleColor.Red);