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.UseShellExecute = false;
|
||||
StartInfo.WorkingDirectory = path;
|
||||
StartInfo.CreateNoWindow = true;
|
||||
|
||||
if (!string.IsNullOrEmpty (ExecPath))
|
||||
StartInfo.Arguments = "--exec-path=\"" + ExecPath + "\" " + args;
|
||||
|
|
|
@ -776,6 +776,7 @@ namespace SparkleShare {
|
|||
process.StartInfo.UseShellExecute = false;
|
||||
process.StartInfo.FileName = "ssh-add";
|
||||
process.StartInfo.Arguments = "\"" + key_file_path + "\"";
|
||||
process.StartInfo.CreateNoWindow = true;
|
||||
|
||||
process.Start ();
|
||||
process.WaitForExit ();
|
||||
|
@ -836,10 +837,11 @@ namespace SparkleShare {
|
|||
EnableRaisingEvents = true
|
||||
};
|
||||
|
||||
process.StartInfo.WorkingDirectory = keys_path;
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
process.StartInfo.WorkingDirectory = keys_path;
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
process.StartInfo.RedirectStandardOutput = true;
|
||||
process.StartInfo.FileName = "ssh-keygen";
|
||||
process.StartInfo.FileName = "ssh-keygen";
|
||||
process.StartInfo.CreateNoWindow = true;
|
||||
|
||||
// -t is the crypto type
|
||||
// -P is the password (none)
|
||||
|
|
Loading…
Reference in a new issue