1.打开终端输入:gedit /usr/share/applications/Pycharm.desktop
然后会弹出一个文件
2.在文件中写入:
python
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /home/.../pycharm.sh #自己pycharm.sh的存放目录
Icon=/home/.../pycharm.png #自己pycharm.png的存放目录
Terminal=pycharm
Categories=Pycharm;

然后点击保存!