I made a script (name : "recordVideo") that launch recordMyDesktop to capture a window. this script is on a computer-1. With computer-2 I want to launch the script with ssh. Here is my script on computer-1 :
#!/bin/sh
cd /home/ivtuser/Bureau/
recordmydesktop --no-sound --delay 3 --windowid &(xwininfo -name "NAME_OF_WINDOW" | sed -n 's/.*Window id: \([0-9a-fx]\+\).*/\1/p')
I have set my parameters for ssh in ssh_config :
ForwardX11 yes
and sshd_config :
X11Forwarding yes
And Xauth is installed on my PC. I tried to launch in local mode for my test with ssh with this command :
$ ssh -X localhost
password: XXX
$ recordVideo
And here is my problem, recordmydesktop stop with the response :
X Error: BadAccess (attempt to access private resource denied)
How can I fix this. I'm lost Thanks