Closed mireiffe closed 4 years ago
It looks like it never received the full result of the "echo DISPLAY=$DISPLAY"
command. Maybe it timed out? I'd suggest increasing the remoteX11.SSH.timeout
setting or changing it to 0 to disable the timeout.
Another thing you could try is changing the remoteX11.SSH.displayCommand
setting on the remote server to something that prints more or less output. Some ideas:
Run directly instead of through another instance of bash to shorten the output:
echo DISPLAY=$DISPLAY
Print extra lines after the DISPLAY variable:
echo DISPLAY=$DISPLAY && echo "this is some meaningless text to hopefully flush the output so we can read the DISPLAY variable"
Thank you for the quick update. I did following your suggestions, and the results are identical to my original post.
remoteX11.SSH.timeout
seems not to make any differences.
andremoteX11.SSH.displayCommand
affect only the 3rd line of the Remote X11 (SSH)'s log which is:
Command for host "xxx.xxx.xxx.xxx" is: echo DISPLAY=$DISPLAY && echo "this is some meaningless text to hopefully flush the output so we can read the DISPLAY variable"
I tried quite many combinations of shells, like bash, zsh and tcsh, and something like DISPLAY=$DISPLAY || echo "this is some meaningless text to hopefully flush the output so we can read the DISPLAY variable"
but there are no progress so far.
I might know what's happening. Your server is probably sending output in small chunks, and at some point the end of the output looks like DISPLAY=
. My parser currently thinks that looks like what the command would output if DISPLAY
weren't set. I need to make it specifically look for a line break instead of just the end of the current text.
I just published a new version which I think will fix your issue. Check it out and let me know.
I checked the new version and it work properly!
Here is log lines for Remote X11.
Thank you :)
Setting up display for remote "ssh-remote".
Connecting to SSH <server information> port 22
DISPLAY = localhost:15.0
Great!
Thank you for making a very convenient extension. I have an issue when copying variable "DISPLAY".
Here are log lines in Remote X11 (SSH):
Would you like to help? Thank you.