On Thursday, March 29, 2018 at 2:48:58 AM UTC-5, Stefan wrote:
>
> Sorry, there's no way.
> That's why we have to ship TortoisePlink and not just plink: TortoisePlink
> is a modified version of plink that has many changes done so that the cmd
> window does not appear.
> So as long as you can not change the code of the windows ssh client,
> you're out of luck.
>
> Stefan
>
Well, it is open source (based on OpenSSH) so one can change the code,
submit patches, etc. https://github.com/PowerShell/openssh-portable
But for now I made a python wrapper that locates and hides the cmd window
that appears.
I set TortoiseSVN -> Settings -> Network -> SSH client to
c:\programdata\anaconda2\python.exe "C:\Program
Files\TortoiseSVN\ssh_hidden.py"
The cmd window still appears, but it's just a brief flash as the wrapper
hides it.
--
You received this message because you are subscribed to the Google Groups
"TortoiseSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tortoisesvn/14c524d3-b3d4-4f14-9472-b52c505151ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/env python2
#This file is offered under GPLv2 or newer
from subprocess import Popen, PIPE, STDOUT
import sys
import os
try:
import win32gui, win32con;
wForeground = win32gui.GetForegroundWindow();
wTitle = win32gui.GetWindowText(wForeground);
if wTitle.endswith("python.exe"):
win32gui.ShowWindow(wForeground, win32con.SW_HIDE);
except:
pass
p = Popen(['c:\\windows\\system32\\openssh\\ssh.exe','-E' os.environ['USERPROFILE'] + '\\ssh_log', '--'] + sys.argv[1:], stdout=sys.stdout, stdin=sys.stdin, stderr=sys.stderr)