Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/toolchains.xml: Permission denied

在Ubuntu 12.04 刚装上了个qt5.1.1 在普通用户上运行时弹出几个对话框,关闭qt时也会弹出来,具体的忘了截图,有以下几个


Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/qtversion.xml: Permission denied

Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/toolchains.xml: Permission denied

Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/devices.xml:Permission denied

Cannot overwrite file /home/baadshah/.config/QtProject/qtcreator/toolchains.xml: Permission denied


解决办法是献给你的用户添加权限,下进入年装得目录,我这里是默认安装在/opt里

root@yuan-pc:/opt# chown -hR $USER:$USER Qt5.1.1


然后再执行

sudo -s chmod o+w /home/xxx/.config/QtProject/qtcreator/*.xml

我这样改了之后就可以用了,再也不弹出错误对话框来了。


参考:http://askubuntu.com/questions/253785/cannot-overwrite-file-home-baadshah-config-qtproject-qtcreator-toolchains-xml

你可能感兴趣的:(ubuntu,qt)