开发者

Qt Creator "Cannot create file (...) qtcreator.xml" (Mac)

开发者 https://www.devze.com 2023-04-08 11:31 出处:网络
Qt Creator starts up with several error messages saying that: \"Cannot create file /Users/[username]/.config/Nokia/qtcreator.xml: Permission denied\"

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 denie开发者_StackOverflow社区d"

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


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/


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
0

精彩评论

暂无评论...
验证码 换一张
取 消