windows: don't show terminal window when running commands
This commit is contained in:
parent
31545c5f12
commit
d8bc1c5163
|
@ -32,6 +32,7 @@ namespace SparkleLib {
|
||||||
StartInfo.RedirectStandardOutput = true;
|
StartInfo.RedirectStandardOutput = true;
|
||||||
StartInfo.UseShellExecute = false;
|
StartInfo.UseShellExecute = false;
|
||||||
StartInfo.WorkingDirectory = path;
|
StartInfo.WorkingDirectory = path;
|
||||||
|
StartInfo.CreateNoWindow = true;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty (ExecPath))
|
if (!string.IsNullOrEmpty (ExecPath))
|
||||||
StartInfo.Arguments = "--exec-path=\"" + ExecPath + "\" " + args;
|
StartInfo.Arguments = "--exec-path=\"" + ExecPath + "\" " + args;
|
||||||
|
|
|
@ -776,6 +776,7 @@ namespace SparkleShare {
|
||||||
process.StartInfo.UseShellExecute = false;
|
process.StartInfo.UseShellExecute = false;
|
||||||
process.StartInfo.FileName = "ssh-add";
|
process.StartInfo.FileName = "ssh-add";
|
||||||
process.StartInfo.Arguments = "\"" + key_file_path + "\"";
|
process.StartInfo.Arguments = "\"" + key_file_path + "\"";
|
||||||
|
process.StartInfo.CreateNoWindow = true;
|
||||||
|
|
||||||
process.Start ();
|
process.Start ();
|
||||||
process.WaitForExit ();
|
process.WaitForExit ();
|
||||||
|
@ -836,10 +837,11 @@ namespace SparkleShare {
|
||||||
EnableRaisingEvents = true
|
EnableRaisingEvents = true
|
||||||
};
|
};
|
||||||
|
|
||||||
process.StartInfo.WorkingDirectory = keys_path;
|
process.StartInfo.WorkingDirectory = keys_path;
|
||||||
process.StartInfo.UseShellExecute = false;
|
process.StartInfo.UseShellExecute = false;
|
||||||
process.StartInfo.RedirectStandardOutput = true;
|
process.StartInfo.RedirectStandardOutput = true;
|
||||||
process.StartInfo.FileName = "ssh-keygen";
|
process.StartInfo.FileName = "ssh-keygen";
|
||||||
|
process.StartInfo.CreateNoWindow = true;
|
||||||
|
|
||||||
// -t is the crypto type
|
// -t is the crypto type
|
||||||
// -P is the password (none)
|
// -P is the password (none)
|
||||||
|
|
Loading…
Reference in a new issue