I have a GUI app that I can run from a terminal window on a Raspberry Pi desktop and it displays the GUI output on the screen attached to the HDMI port. In the terminal window I run a command like
If at the same time I am logged in to another computer with an ssh terminal back to the RPi, if I run
python myapp.py it fails because it can't connect to the display.
I imagine that it must be possible to do this, and perhaps the
python myapp.py needs to be wrapped in a script that supplies appropriate environment variables.
What's the best way to solve this?