Centos 7 rc.local设置开机启动QT程序提示:QStandardPaths: XDG_RUNTIME_DIR not set...

localhost.localdomain rc.local[15230]: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’

localhost.localdomain rc.local[15230]: qt.qpa.screen: QXcbConnection: Could not connect to display

localhost.localdomain rc.local[15230]: Could not connect to any X display.

请各位大侠指教解决的方法!

https://blog.csdn.net/zzwdkxx/article/details/83341239