生成桌面图标
方法一.直接在工具栏里Tools下进行生成
方法二.
1.创建pycharm.desktop文件到/usr/share/applications/目录下 :touch /usr/share/applications/pycharm.desktop
2.执行命令:sudo vim /usr/share/applications/pycharm.desktop 输入管理员密码
3.编辑pycharm.desktop 添加:
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm
Exec=/opt/pycharm-2018.1.2/bin/pycharm.sh %F
Icon=/opt/pycharm-2018.1.2/bin/pycharm.png
Comment=The Drive to Develop
Categories=IDE;
Terminal=pycharm
//StartupWMClass=jetbrains-pycharm
或
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Professional Edition
Icon=/opt/pycharm-2018.1.2/bin/pycharm.png
Exec=sh /opt