I have created a desktop entry for pycharm by: Tools -> Create desktop entry
However, when I launch pycharm using the desktop entry, the PATH variable under Environment variables is different than the PATH variable when I launch Pycharm using: opt/pycharm-community-2020.1.2/bin/./pycharm.sh.
In fact, the correct one (the one that coincides with echo $PATH) is the one obtained using opt/pycharm-community-2020.1.2/bin/./pycharm.sh.
I am using pycharm-community-2020.1.2 under debian 10 with gnome.
When I launched ./pycharm.sh for the first time I do NOT used sudo.
Both desktop entries (.local/share/applications/jetbrains-pycharm-ce.desktop .gnome/apps/jetbrains-pycharm-ce.desktop) are okay:
Name=PyCharm Community Edition
Comment=Python IDE for Professional Developers