Display issue - "0.0"

When running an application with display, in some cases, by running the software remotely, from the JFrog Connect 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 os

os.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/bash

export DISPLAY=:0
export XAUTHORITY=/home/pi/.Xauthority
export XDG_RUNTIME_DIR=/run/user/1000

Last updated