1.sudo gedit /usr/share/applications/Pycharm.desktop
2.然后输入以下内容,注意Exec和Icon需要找到正确的路径
[Desktop Entry]
Encoding=UTF-8
Name=Pycharm
Comment=Pycharm IDE
Exec=sh /usr/local/pycharm/pycharm-4.0.4/bin/pycharm.sh
Icon=/usr/local/pycharm/pycharm-4.0.4/bin/pycharm.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
3.然后进入/usr/share/applications/将Pycharm.desktop复制到~/Desktop下 ,然后修改可执行chmod +777 ./Pycharm.desktop