Qt Creator “Cannot create file (…) qtcreat

2019-03-26 16:56发布

Qt Creator starts up with several error messages saying that: "Cannot create file /Users/[username]/.config/Nokia/qtcreator.xml: Permission denied"

And when I exit: "Cannot create file /Users/[username]/.config/Nokia/toolChains.xml: Permission denied"

The program runs fine, but I guess it won't be able to store any config. Anyone know how to fix this?

标签: qt qt-creator
2条回答
一纸荒年 Trace。
2楼-- · 2019-03-26 17:06

this command works great for me. found it in qtcenter forum

find ~/.config/Nokia -print0 | sudo xargs -0 chown $USER

i use this instead for version 2.6.1 Qt 5

find ~/.config/QtProject -print0 | sudo xargs -0 chown $USER
查看更多
beautiful°
3楼-- · 2019-03-26 17:18

As has been mentioned in the comments, it looks like the Qt installer adds the configuration directories with root as the owner. To fix this, run:

sudo chown -R `id -un`:staff ~/.config/Nokia/
查看更多
登录 后发表回答