public static bool RunningOnUnix() { switch (Environment.OSVersion.Platform) { case PlatformID.Unix: return true; default: return false; } }