|
|
@ -1,4 +1,4 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Security.AccessControl;
|
|
|
|
using System.Security.AccessControl;
|
|
|
|
using System.Security.Principal;
|
|
|
|
using System.Security.Principal;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
@ -27,8 +27,16 @@ namespace NzbDrone.Common.EnvironmentInfo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void Register()
|
|
|
|
public void Register()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_diskProvider.EnsureFolder(_appFolderInfo.AppDataFolder);
|
|
|
|
_diskProvider.EnsureFolder(_appFolderInfo.AppDataFolder);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (UnauthorizedAccessException)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw new SonarrStartupException("Cannot create AppFolder, Access to the path {0} is denied", _appFolderInfo.AppDataFolder);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (OsInfo.IsWindows)
|
|
|
|
if (OsInfo.IsWindows)
|
|
|
|
{
|
|
|
|
{
|
|
|
|