本文前提是已经安装pycharm和pyqt以及qttools5-dev-tools
遇到问题如下:
QStandardPaths: wrong ownership on runtime directory /run/user/1000/snap.pycharm-community, 0 instead of 1000
QStandardPaths: wrong ownership on runtime directory /run/user/1000/snap.pycharm-community, 0 instead of 1000
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
操作以下代码:
sudo su
cd /run/user/1000
mkdir -m 0700 snap.pycharm-community 用这个权限是因为在出现这个问题前有个提示说要创建这个700权限的文件
如果已经创建了这个文件夹那就直接进行第三步
chown 用户名.用户名 snap.pycharm-community
至此,解决第一个问题。
第二个问题,参照https://wiki.archlinux.org/index.php/Libpng_errors
这是一个警告,可以不处理,不会影响操作。