Fix Cardigann definition loading if HOME is not set (#673)

This commit is contained in:
kaso17 2016-11-10 18:24:35 +01:00 committed by GitHub
parent 5922795587
commit 58ee30aa99
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ namespace Jackett.Services
if (System.Environment.OSVersion.Platform == PlatformID.Unix)
{
dirs.Add(Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".config/cardigann/definitions/"));
dirs.Add(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "cardigann/definitions/"));
dirs.Add("/etc/xdg/cardigan/definitions/");
}
else