解决QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'问题 在/etc/profile末尾增加两句 export XDG_RUNTIME_DIR=/usr/lib/ export RUNLEVEL=3 然后刷新全局变量 source /etc/profile 则可