1. 程式人生 > >在ubuntu18.04中使用嵌入在pycharm的PyQt遇到的問題:QStandardPaths和libpng warning

在ubuntu18.04中使用嵌入在pycharm的PyQt遇到的問題:QStandardPaths和libpng warning

本文前提是已經安裝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

操作以下程式碼:

cd /run/user/1000

chown 使用者名稱.使用者名稱 snap.pycharm-community

至此,解決第一個問題。

這是一個警告,可以不處理,不會影響操作。