When running an application with display, in some cases, by running the software remotely, from Upswift platform, the software cannot find the display.
To fix the issue, add the next Bash commands to the software code: *Python example on a Raspberry Pi
import osos.environ["DISPLAY"] = ":0"os.environ["XAUTHORITY"] = "/home/pi/.Xauthority"os.environ["XDG_RUNTIME_DIR"] = "/run/user/1000"
Make sure to change the user "pi" in the path "/home/pi/.Xauthority" with your GUI Linux device user.
In case of running a Bash script, here are the same needed lines:
#!/bin/bashexport DISPLAY=:0export XAUTHORITY=/home/pi/.Xauthorityexport XDG_RUNTIME_DIR=/run/user/1000