Bingo!
This above is the exact problem.
I cleaned all the folders. Then I started new x2goclient session. While the session was starting, I've created symbolic folder without "\" symbol, in the next moment when the folder with "\" appeared. As result I had 2 folders in ~/.x2go/ - the one with "\" and symlink without "\". Then the 3 files .pulse-cookie; .pulse-client.conf and cmdoutput appeared, as well as the sound in my client!
That is the problem then. Can you, please, provide fix?
Hi hi,
although this issue is happening on the server side (located in Ubuntu x2goserver), the code is actually sending from the client - reverse ssh.
I'm using x2goclient 3.01-13 on my Windows 7, as 3.01-14 doesn't work properly. Still I've tested x2goclient 3.01-14 on VMWare Ubuntu, and it doesn't solve this issue, infact, it doesn't have sound at all.
I couldn't find x2goclient 3.01-13 sources, but I have found 3.01-14 sources, so I made my investigations there.
Before we start dig in the source:
1. We have problem with creating 3 files (.pulse-cookie; .pulse-client.conf, cmdoutput)
2. We have problem with not properly set environment (PULSE_CLIENTCONFIG)
All these errors are because:
1. These files are located in non-existing folder (without "\")
2. This environment is pointing to non-existing folder (without "\")
We have 2 solutions: to use everywhere DOMAIN\user, or DOMAINuser.
I think using everywhere DOMAIN\user is better, but it is complete up to you as development to decide.
Another problem: I've checked, and because of very same problem, sshfs can't map local folder with remote folder, because of non-existing /tmp/DOMAINuser_media folder.
Deep in the code:
All sources are in the file: onmainwindow.cpp. Searching for .pulse-cookie and PULSE_CLIENTCONFIG lead us to the first places
row 3,227:
if ( sndSystem==PULSE )
{
startSoundServer=false;
QString scmd;
if ( !sshSndTunnel )
scmd="echo \"default-server=`echo "
"$SSH_CLIENT | awk '{print $1}'`:"+
sndPort+
"\"> ~/.x2go/C-"+
resumingSession.sessionId+
"/.pulse-client.conf"
";echo \"cookie-file=.x2go/C-"+
resumingSession.sessionId+
"/.pulse-cookie"+
"\">> ~/.x2go/C-"+
resumingSession.sessionId+
"/.pulse-client.conf";
row 4,274:
cmd="PULSE_CLIENTCONFIG=~/.x2go/C-"+
resumingSession.sessionId+
"/.pulse-client.conf "+cmd;
Note: same variable: resumingSession.sessionId