QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'


1、问题

2、解决方法

root@DESKTOP-1N42TVH:/home/test2# vim /etc/profile    ## 在配置文件末尾追加如下两句
export XDG_RUNTIME_DIR=/usr/lib/
export RUNLEVEL=3

source一下:

root@DESKTOP-1N42TVH:/home/test2# source /etc/profile

 3、测试(刚才的问题解决)