sudo gedit /usr/share/applications/pycharm.desktop
添加以下内容
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /usr/local/pycharm-2018.3.5/bin/pycharm.sh
Icon=/usr/local/pycharm-2018.3.5/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;