生成桌面图标
方法一.直接在工具栏里Tools下进行生成
方法二.
1.建立pycharm.desktop文件到/usr/share/applications/目录下 :touch /usr/share/applications/pycharm.desktopweb
2.执行命令:sudo vim /usr/share/applications/pycharm.desktop 输入管理员密码vim
3.编辑pycharm.desktop 添加:bash
[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
或app
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm Professional Edition
Icon=/opt/pycharm-2018.1.2/bin/pycharm.png
Exec=sh /opt/pycharm-2018.1.2/bin/pycharm.sh
Comment=Pycharm3:The Python IDE
Categories=Pycharm;
Terminal=pycharm
StartupWMClass=jetbrains-pycharm
下边两行命令的路径为本身的解压路径,均不能出错。
Icon=/opt/pycharm-2018.1.2/bin/pycharm.png,为程序图标
Exec=sh /opt/pycharm-2018.1.2/bin/pycharm.sh,为程序执行命令svg
若建立完不能执行,能够进行提权操做,增长执行权限。工具
sudo chmod 777 pycharm.desktop
桌面图标建立完成。spa