执行程序:sudo ./hbupdate-linux-gui/hbupdate-linux
报错提示:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Authorization required, but no authorization protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :10
Could not connect to any X display.
解决方法:用X server访问权限启动程序
执行命令:xhost ./hbupdate-linux-gui/hbupdate-linux
错误提示:xhost: bad hostname "./hbupdate-linux-gui/hbupdate-linux"
解决方法:
命令:xhost local:hbupdate-linux hbupdate-linux
再次执行:sudo ./hbupdate-linux-gui/hbupdate-linux
成功解决问题