OpenRGB does not start when run with sudo in a wayland session

I am running a KDE Plasma wayland session, with Qt 5.15.2.

When running the OpenRGB AppImage with sudo, this is the terminal output I get:

Attempting to connect to local OpenRGB server.
Connection attempt failed
Local OpenRGB server unavailable, running standalone.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.screen: QXcbConnection: Could not connect to display :1
Could not connect to any X display.

I'm not sure if this is an issue with OpenRGB itself, or if its an upstream issue.

Similar issues exist elsewhere, like https://github.com/flatpak/flatpak/issues/3357.