OK - thanks for your work on this!
David
On Jun 8, 2015, at 2:16 PM, Mihai Moldovan <ionic@ionic.de> wrote:
On 08.06.2015 08:09 PM, David Ritch wrote:
Maybe I’m reading this wrong, but I think it may still be a quoting issue. Here’s what I see. In the following debug messages, it appears to be sending a command - “export HOSTNAME && x2golistsessions” - to the server, and processing its output. When I run this from the command line, I get the following output:
X2GODATABEGIN:7542493b-a84b-418d-994c-d640b3d91ef5 X2GODATAEND:7542493b-a84b-418d-994c-d640b3d91ef5
Exactly. That's what should be returned.
This is just the session frame, with no text. However, when the x2go client runs it, it seems to see the following between those two lines:
; export PATH=/usr/local/bin:/usr/bin:/bin; export HOSTNAME
Unless I’m misinterpreting something, this is actually part of the command string, and not its output.
Kind of. It's "garbage" from the command-to-be-ran *and* the output of x2golistsessions (which "happens to be" empty for you, because no other session is running) and the X2GODATAEND echo command INCLUDING the last semicolon, which should be echo'd.
I have a strong hunch at what the problem is.
Qt is trying to be too smart and messes up the (correctly) quoted command line. I have a fix for that in mind, but it's likely going to be a bit more extensive. I also need to test it carefully.
Don't worry, I have already debugged this for several hours last night.
Just can't give any ETA for a fix. This week, I'm home about less time than on the road...
Mihai