0
点赞
收藏
分享

微信扫一扫

麒麟V10_SP1_4.19.71-9-KR990 root用户运行qt程序,提示需要授权,请问如何授权?

麒麟V10_SP1_4.19.71-9-KR990 root用户运行qt程序,提示需要授权,但未指定授权协议,普通用户运行同一个qt程序正常。请问如何授权?请麒麟系统技术老师解惑。

例子如下:


在系统自带qt5的干净环境下运行qt程序tt,报错如下:

root@bhyh-L410-KLVU-WDU0:/home/bhyh/tt# ./tt

Authorization required, but no authorization protocol specified        需要授权,但未指定授权协议

Authorization required, but no authorization protocol specified

qt.qpa.xcb: could not connect to display :0

QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0

段错误

举报

相关推荐

0 条评论