From e7cd4884358f1a492b021a8efa6c4e98e51ceb7a Mon Sep 17 00:00:00 2001 From: JustArchi Date: Tue, 28 Jun 2016 10:54:39 +0200 Subject: [PATCH] Give up for now --- ArchiSteamFarm/Runtime.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ArchiSteamFarm/Runtime.cs b/ArchiSteamFarm/Runtime.cs index 5b6eeda31..97b95ee42 100644 --- a/ArchiSteamFarm/Runtime.cs +++ b/ArchiSteamFarm/Runtime.cs @@ -49,12 +49,11 @@ namespace ArchiSteamFarm { return false; } - // Otherwise use workaround for Mono, as Environment.UserInteractive is always false - // Please close your eyes, there is really no better way for now - Logging.LogGenericInfo("FriendlyName: " + AppDomain.CurrentDomain.FriendlyName); - Environment.Exit(0); - _IsUserInteractive = Console.In is StreamReader; - return _IsUserInteractive.Value; + // In Mono, Environment.UserInteractive is always false + // There is really no reliable way for now, so assume always being interactive + // Maybe in future I find out some awful hack or workaround that could be at least semi-reliable + _IsUserInteractive = true; + return true; } }