mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 15:52:42 +00:00
Fixed: Don't show cmd.exe window when fpcalc runs
This commit is contained in:
parent
b52538c54f
commit
ace83498cd
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,7 @@ private string GetFpcalcPath()
|
||||||
p.StartInfo.FileName = path;
|
p.StartInfo.FileName = path;
|
||||||
p.StartInfo.Arguments = "-version";
|
p.StartInfo.Arguments = "-version";
|
||||||
p.StartInfo.UseShellExecute = false;
|
p.StartInfo.UseShellExecute = false;
|
||||||
|
p.StartInfo.CreateNoWindow = true;
|
||||||
p.StartInfo.RedirectStandardOutput = true;
|
p.StartInfo.RedirectStandardOutput = true;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -135,6 +136,7 @@ private Version GetFpcalcVersion()
|
||||||
p.StartInfo.FileName = _fpcalcPath;
|
p.StartInfo.FileName = _fpcalcPath;
|
||||||
p.StartInfo.Arguments = $"-version";
|
p.StartInfo.Arguments = $"-version";
|
||||||
p.StartInfo.UseShellExecute = false;
|
p.StartInfo.UseShellExecute = false;
|
||||||
|
p.StartInfo.CreateNoWindow = true;
|
||||||
p.StartInfo.RedirectStandardOutput = true;
|
p.StartInfo.RedirectStandardOutput = true;
|
||||||
|
|
||||||
p.Start();
|
p.Start();
|
||||||
|
@ -238,6 +240,7 @@ private AcoustId GetFingerprintUncached(string file)
|
||||||
p.StartInfo.FileName = _fpcalcPath;
|
p.StartInfo.FileName = _fpcalcPath;
|
||||||
p.StartInfo.Arguments = $"{_fpcalcArgs} \"{file}\"";
|
p.StartInfo.Arguments = $"{_fpcalcArgs} \"{file}\"";
|
||||||
p.StartInfo.UseShellExecute = false;
|
p.StartInfo.UseShellExecute = false;
|
||||||
|
p.StartInfo.CreateNoWindow = true;
|
||||||
p.StartInfo.RedirectStandardOutput = true;
|
p.StartInfo.RedirectStandardOutput = true;
|
||||||
p.StartInfo.RedirectStandardError = true;
|
p.StartInfo.RedirectStandardError = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue