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)
  • TortoiseS... tortoisesvn+APn2wQfnw2fAUX2MzIo65jZeA1rH_G1LHeH3ZvHbpFrj9UVz1cjw
    • Re: ... Stefan via TortoiseSVN
      • ... Paul Klapperich via TortoiseSVN
      • ... tortoisesvn+APn2wQeOV-P8kMQ5PVKZAWqQNFTv5RNqTmU96DRHeL6dZAWTDBjp
        • ... Stefan via TortoiseSVN
          • ... tortoisesvn+APn2wQfV2gM2BYWPzNZvnd4gLtGAH3pf6rgXAIOBrObRHbNf5ZsR
            • ... TortoiseSVN
              • ... Stefan via TortoiseSVN
              • ... tortoisesvn+APn2wQfV2gM2BYWPzNZvnd4gLtGAH3pf6rgXAIOBrObRHbNf5ZsR
      • ... Oliver Smith via TortoiseSVN
    • Re: ... tortoisesvn+APn2wQdgxbK3CgqO2rgIXa1GkHQUmRhnDw3JvLUkhfgFyEU8pV-6

Reply via email to