xinit: unable to connect to X server: Connection refused
I failed to debug this on Pi5. That's why I use runcommand now. Can you show me how do you initialize display in your shell script please ?
EDIT : Ok, I just understand that you run your script with runcommand. I tried this, but not starting.
RE-EDIT : Ok it's working, somes stupid errors from me. Thank you for your help !
This is working too :
#!/bin/bash cd "/home/pi/RetroPie/roms/ports/Trials 2 Second Edition" wine trials2.exe