Hi,
to be honest, I can’t find my mistake. I wrote myself a rule that allows me to quit Kodi and start another application on the machine. If I close the other application, I would like to start Kodi again.
Quitting Kodi works without any problems:
executeCommandLine("/usr/bin/sshpass","-p","<password>","/usr/bin/ssh","-t","-o","StrictHostKeyChecking=no","<username>@<ip>","sudo","/usr/bin/killall","-9","/usr/lib/x86_64-linux-gnu/kodi/kodi.bin")
Starting Kodi does not work. I tried multiple different ways. The last was:
executeCommandLine("/usr/bin/sshpass","-p","<password>","/usr/bin/ssh","-t","<username>@<ip>","export","DISPLAY=:0;","/usr/bin/kodi","--standalone")
If I try it via the command line it worked:
sudo -u openhab /usr/bin/sshpass -p <password> /usr/bin/ssh -t <username>@<ip> 'export DISPLAY=:0; /usr/bin/kodi --standalone'
I also tried it with StrictHostKeyChecking=no
. I received the same result. And I also tried it by adding \&
or for executeCommandLine \\&
on the target and &
on the host.
Thanks in advance.