linux添加pycharm图标,linux下安装pycharm生成桌面图标

发布于:2023-04-26 ⋅ 阅读:(1578) ⋅ 点赞:(1)

生成桌面图标

方法一.直接在工具栏里Tools下进行生成

2efb8dd6985dcad006a29f5cf38793d4.png

方法二.

1.建立pycharm.desktop文件到/usr/share/applications/目录下 :touch /usr/share/applications/pycharm.desktopweb

2b8318fdd1f262b4e57825d7e7b941b3.png

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