mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 19:58:38 +00:00
JackettTray: bump delay from 30 to 120 resolves #10086
This commit is contained in:
parent
0ad911f97a
commit
b229fac9b1
1 changed files with 3 additions and 2 deletions
|
@ -97,18 +97,19 @@ namespace Jackett.Tray
|
|||
// We won't be able to start the tray app up again from the updater, as when running via a windows service
|
||||
// there is no interaction with the desktop.
|
||||
// Fire off a console process that will start the tray 30 seconds later
|
||||
// changed to 120 seconds as a result of https://github.com/Jackett/Jackett/issues/10068
|
||||
var trayExePath = Process.GetCurrentProcess().MainModule.FileName;
|
||||
|
||||
var startInfo = new ProcessStartInfo()
|
||||
{
|
||||
Arguments = $"/c timeout 30 > NUL & \"{trayExePath}\" --UpdatedVersion yes",
|
||||
Arguments = $"/c timeout 120 > NUL & \"{trayExePath}\" --UpdatedVersion yes",
|
||||
FileName = "cmd.exe",
|
||||
UseShellExecute = true,
|
||||
CreateNoWindow = true,
|
||||
WindowStyle = ProcessWindowStyle.Hidden
|
||||
};
|
||||
|
||||
logger.Info($"Starting 30 second delay tray launch as Jackett is running as a Windows service: {startInfo.FileName} {startInfo.Arguments}");
|
||||
logger.Info($"Starting 120 second delay tray launch as Jackett is running as a Windows service: {startInfo.FileName} {startInfo.Arguments}");
|
||||
Process.Start(startInfo);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue