wow, thanks a lot man! alot of useful stuff!
managed to get the .sh file working, and I can execute it from ssh shell, it plays the xsp file!
but when i add it to favorites (the .sh System.Exec as you suggested) it fails with some errors about audio sink...it seems it trys to play on wrong sound card or something like that...
I'm very close now, I could even script it to execute the soundtrack.sh remotely, even though its a unneccesary complication...it would be better if it worked via favorites..
i cannot believe i can execute the script from the remote machine but kodi is not capable of executing the script from favorites
info <general>: CAESinkALSA - Unable to open device "surround21:CARD=PCH,DEV=0" for playback
2023-05-19 18:18:03.868 T:880151 warning <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
2023-05-19 18:18:03.869 T:880151 info <general>: Found 2 Lists of Devices
2023-05-19 18:18:03.869 T:880151 info <general>: Enumerated ALSA devices:
2023-05-19 18:18:03.869 T:880151 info <general>: Device 1
cut
2023-05-19 18:18:03.869 T:880151 info <general>: Device 2
cut
2023-05-19 18:18:03.878 T:880152 info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2023-05-19 18:18:03.878 T:880152 info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
2023-05-19 18:18:03.885 T:880142 warning <general>: CGUIWindowManager - HandleAction - ignoring action 122, because topmost modal dialog closing animation is running
EDIT: forget it, found the solution
Cannot get script to run from favourites.xml - Kodi - CoreELEC Forums
it seems there is a problem with .sh scripts, but .py scripts work fine from the favorites!
So i just added py script that plays xsp as:
<favourite name="Bla">RunScript(/storage/.kodi/userdata/playlists/music/bla.py)</favourite>
(this is the same py script that you suggested in the first place!
I guess adding it to favorites via right click is wrong, who knows what he did instead of RunScript.
thanks again for your help!