I have upgraded from PyCharm 2017.3 under Ubuntu 17.04/10 to PyCharm 2018.2 under Ubuntu 18.04. Previously I installed PyCharm via "manual" download & unzip. This time I followed a post (https://www.jetbrains.com/help/pycharm/install-and-set-up-pycharm.html) which suggested installing it via
sudo snap install pycharm-community --classic
The installation works OK. However, every time I start the debugger I now get two occurrences (in Console window) of error:
QStandardPaths: XDG_RUNTIME_DIR points to non-existing path '/run/user/1000/snap.pycharm-community', please create it with 0700 permissions.
(The application uses Qt/PyQt, hence "QStandardPaths" is referenced during its start-up.)
XDG_RUNTIME_DIR is supposed to be an existing directory for temporary file storage. Outside of PyCharm mine is already set by the system to /run/user/1000. That directory exists and is usable.
I should not need to create the sub-directory either manually or by a script. If I do create it, of course it gets deleted during logon/reboot (it's a temporary directory, something must clean it out completely).
It seems that PyCharm debugger alters this environment variable to append the snap.pycharm-community before launching the executable session. That must come from the way I installed this time. Either PyCharm should not alter that variable, or if it wants to use a "neat" sub-directory like this it should surely create it itself before launch.
Either: where/why it is altering the variable/not creating this directory
Or: should I uninstall the
snap install way I did it and go back to re-installing PyCharm "manually" to avoid the issue