1. Create .desktop file
Type in the terminal
sudo gedit /usr/share/applications/pycharm.desktop
2. Edit the pycharm.desktop file
Copy the following content in the created pycharm.desktop file
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /home/TanaStudy/下载/pycharm-2020.3.2/bin/pycharm.sh
Icon=/home/TanaStudy/下载/pycharm-2020.3.2/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
Note :
Replace the path corresponding to Exec and Icon with your own path. The .sh file is the startup item of pycharm, and the .png is the icon file (you can also replace the icon file with your favorite icon). After pycharm is installed, these two files are automatically generated in the /pycharm-2020.3.2/bin/ directory.