From 298820647b691200e4ab3eecbe9b40cfb8f1c107 Mon Sep 17 00:00:00 2001 From: Bogdan Ruslanovich Drozd Date: Sun, 20 Nov 2022 18:05:08 +0300 Subject: fix: PyCharm profiles Do not use `private-cache`, because PyCharm places in cache directories stuff like spelling dictionary (i. e. if you download spelling dictionary with `private-cache`, on restart PyCharm you need to download spelling dictionary again). --- etc/inc/disable-programs.inc | 2 ++ etc/profile-m-z/pycharm-community.profile | 9 +++++++-- etc/profile-m-z/pycharm-professional.profile | 2 -- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index b86e0bbe4..349bca426 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc @@ -67,6 +67,7 @@ blacklist ${HOME}/.cache/GoldenDict blacklist ${HOME}/.cache/INRIA blacklist ${HOME}/.cache/INRIA/Natron blacklist ${HOME}/.cache/JetBrains/CLion* +blacklist ${HOME}/.cache/JetBrains/PyCharm* blacklist ${HOME}/.cache/KDE/neochat blacklist ${HOME}/.cache/Mendeley Ltd. blacklist ${HOME}/.cache/MusicBrainz @@ -280,6 +281,7 @@ blacklist ${HOME}/.config/Gpredict blacklist ${HOME}/.config/INRIA blacklist ${HOME}/.config/InSilmaril blacklist ${HOME}/.config/JetBrains/CLion* +blacklist ${HOME}/.config/JetBrains/PyCharm* blacklist ${HOME}/.config/Jitsi Meet blacklist ${HOME}/.config/KDE/neochat blacklist ${HOME}/.config/KeePass diff --git a/etc/profile-m-z/pycharm-community.profile b/etc/profile-m-z/pycharm-community.profile index 629396aaa..875b83e8e 100644 --- a/etc/profile-m-z/pycharm-community.profile +++ b/etc/profile-m-z/pycharm-community.profile @@ -5,7 +5,13 @@ include pycharm-community.local # Persistent global definitions include globals.local -noblacklist ${HOME}/.PyCharmCE* +noblacklist ${HOME}/.PyCharm* +# Persistent cache is needed for spell and grammar checkers, etc. +noblacklist ${HOME}/.cache/JetBrains/PyCharm* +noblacklist ${HOME}/.config/JetBrains/PyCharm* +# Not `PyCharm*`, because the state about of "anonymous data sent" is shared +# between JetBrains IDEs. +noblacklist ${HOME}/.local/share/JetBrains # Allow java (blacklisted by disable-devel.inc) include allow-java.inc @@ -30,7 +36,6 @@ tracelog # private-etc alternatives,fonts,passwd - minimal required to run but will probably break # program! -private-cache private-dev private-tmp diff --git a/etc/profile-m-z/pycharm-professional.profile b/etc/profile-m-z/pycharm-professional.profile index b754a18c9..126f5cec8 100644 --- a/etc/profile-m-z/pycharm-professional.profile +++ b/etc/profile-m-z/pycharm-professional.profile @@ -6,7 +6,5 @@ include pyucharm-professional.local # added by included profile #include globals.local -noblacklist ${HOME}/.PyCharm* - # Redirect include pycharm-community.profile -- cgit v1.2.3-70-g09d2