Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: fix installation path with spaces #10489

Merged
merged 1 commit into from
Dec 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Jackett.Updater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -516,15 +516,15 @@ private void ProcessUpdate(UpdaterConsoleOptions options)
if (isWindows)
{
//User didn't initiate the update from Windows service and wasn't running Jackett via the tray, must have started from the console
startInfo.Arguments = $"/K {startInfo.FileName} {startInfo.Arguments}";
startInfo.Arguments = $"/K \"{startInfo.FileName}\" {startInfo.Arguments}";
startInfo.FileName = "cmd.exe";
startInfo.CreateNoWindow = false;
startInfo.WindowStyle = ProcessWindowStyle.Normal;
}

if (variant == Variants.JackettVariant.Mono)
{
startInfo.Arguments = startInfo.FileName + " " + startInfo.Arguments;
startInfo.Arguments = $"\"{startInfo.FileName}\" {startInfo.Arguments}";
startInfo.FileName = "mono";
}

Expand All @@ -535,7 +535,7 @@ private void ProcessUpdate(UpdaterConsoleOptions options)
startInfo.CreateNoWindow = true;
}

logger.Info("Starting Jackett: " + startInfo.FileName + " " + startInfo.Arguments);
logger.Info($"Starting Jackett: \"{startInfo.FileName }\" {startInfo.Arguments}");
Process.Start(startInfo);
}
}
Expand Down