mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
@@ -52,7 +52,7 @@ namespace Jackett.Common.Services
|
||||
throw new Exception("Could not create settings directory. " + ex.Message);
|
||||
}
|
||||
|
||||
if (System.Environment.OSVersion.Platform != PlatformID.Unix)
|
||||
if (Environment.OSVersion.Platform != PlatformID.Unix)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -69,9 +69,7 @@ namespace Jackett.Common.Services
|
||||
{
|
||||
try
|
||||
{
|
||||
// Use EscapedCodeBase to avoid Uri reserved characters from causing bugs
|
||||
// https://stackoverflow.com/questions/896572
|
||||
processService.StartProcessAndLog(new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath, "--MigrateSettings", true);
|
||||
processService.StartProcessAndLog(EnvironmentUtil.JackettExecutablePath(), "--MigrateSettings", true);
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -166,9 +164,7 @@ namespace Jackett.Common.Services
|
||||
}
|
||||
}
|
||||
|
||||
// Use EscapedCodeBase to avoid Uri reserved characters from causing bugs
|
||||
// https://stackoverflow.com/questions/896572
|
||||
public string ApplicationFolder() => Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath);
|
||||
public string ApplicationFolder() => EnvironmentUtil.JackettInstallationPath();
|
||||
|
||||
public string GetContentFolder()
|
||||
{
|
||||
|
Reference in New Issue
Block a user