1.创建.Desktop文件
sudo gedit /usr/share/applications/pycharm.desktop
2.建立pycharm.desktop
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /home/oliver/下载/pycharm-community-2018.1.2/bin/pycharm.sh
Icon=/home/oliver/下载/pycharm-community-2018.1.2/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
其中Exec是.sh文件,pycharm的启动项;Icon是图标,一般安装完成后,都会有一个pycharm图标,当然你也可以设置成任意的图标