From 9abd5c0e285231cf449cc6a595aabe5d5e024c6b Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 14 Sep 2013 17:23:58 -0700 Subject: [PATCH] added /run/ to none-production start paths. --- NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs b/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs index f2d0e4caf..858db57b0 100644 --- a/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs +++ b/NzbDrone.Common/EnvironmentInfo/RuntimeInfo.cs @@ -64,7 +64,9 @@ namespace NzbDrone.Common.EnvironmentInfo if (lowerProcessName.Contains("jetbrain")) return false; if (lowerProcessName.Contains("resharper")) return false; - if (Directory.GetCurrentDirectory().ToLower().Contains("teamcity")) return false; + string lowerCurrentDir = Directory.GetCurrentDirectory().ToLower(); + if (lowerCurrentDir.Contains("teamcity")) return false; + if (lowerCurrentDir.StartsWith("/run/")) return false; return true; }