|
|
@ -71,7 +71,6 @@ namespace NzbDrone.Common
|
|
|
|
return processInfo;
|
|
|
|
return processInfo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void OpenDefaultBrowser(string url)
|
|
|
|
public void OpenDefaultBrowser(string url)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Logger.Info("Opening URL [{0}]", url);
|
|
|
|
Logger.Info("Opening URL [{0}]", url);
|
|
|
@ -154,8 +153,6 @@ namespace NzbDrone.Common
|
|
|
|
process.WaitForExit();
|
|
|
|
process.WaitForExit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void SetPriority(int processId, ProcessPriorityClass priority)
|
|
|
|
public void SetPriority(int processId, ProcessPriorityClass priority)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var process = Process.GetProcessById(processId);
|
|
|
|
var process = Process.GetProcessById(processId);
|
|
|
@ -178,7 +175,6 @@ namespace NzbDrone.Common
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static ProcessInfo ConvertToProcessInfo(Process process)
|
|
|
|
private static ProcessInfo ConvertToProcessInfo(Process process)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (process == null) return null;
|
|
|
|
if (process == null) return null;
|
|
|
@ -204,8 +200,6 @@ namespace NzbDrone.Common
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void Kill(int processId)
|
|
|
|
private void Kill(int processId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var process = Process.GetProcesses().FirstOrDefault(p => p.Id == processId);
|
|
|
|
var process = Process.GetProcesses().FirstOrDefault(p => p.Id == processId);
|
|
|
|