Linux 下 PyCharm 安装完成之后,并不会主动生成快捷方式,需要手动创建应用的桌面快捷方式,该方法适用于绝大部分的 Linux 系统。
1. PyCharm
终端中输入以下命令:
$ sudo nvim /usr/share/applications/PyCharm.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=PyCharm
GenericName=PyCharm2021
Comment=PyCharm:The Python IDE
Exec="/home/yumingmin/softwares/pycharm-2021.1.1/bin/pycharm.sh"
Icon=/home/yumingmin/softwares/pycharm-2021.1.1/bin/pycharm.png
Terminal=pycharm
Categories=JetBrains
2. IDEA
终端中输入以下命令:
$ sudo nvim /usr/share/applications/IDEA.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=IntelliJ IDEA
GenericName=IDEA2021
Comment=IntelliJ IDEA:The Java IDE
Exec="/home/yumingmin/softwares/idea-IU-211.7142.45/bin/idea.sh"
Icon=/home/yumingmin/softwares/idea-IU-211.7142.45/bin/idea.png
Terminal=idea
Categories=JetBrains
3. DataGrip
终端中输入以下命令:
$ sudo nvim /usr/share/applications/DataGrip.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=DataGrip
GenericName=DataGrip2021
Comment=DataGrip:The SQL IDE
Exec="/home/yumingmin/softwares/DataGrip-2021.1.1/bin/datagrip.sh"
Icon=/home/yumingmin/softwares/DataGrip-2021.1.1/bin/datagrip.png
Terminal=datagrip
Categories=JetBrains
4. GoLand
终端中输入以下命令:
$ sudo nvim /usr/share/applications/GoLand.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=GoLand
GenericName=GoLand2021
Comment=GoLand:The Go IDE
Exec="/home/yumingmin/softwares/GoLand-2021.1.1/bin/goland.sh"
Icon=/home/yumingmin/softwares/GoLand-2021.1.1/bin/goland.png
Terminal=goland
Categories=JetBrains
5. PhpStorm
终端中输入以下命令:
$ sudo nvim /usr/share/applications/PhpStorm.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=PhpStorm
GenericName=PhpStorm2021
Comment=PhpStorm:The Php IDE
Exec="/home/yumingmin/softwares/PhpStorm-211.7142.44/bin/phpstorm.sh"
Icon=/home/yumingmin/softwares/PhpStorm-211.7142.44/bin/phpstorm.png
Terminal=phpstorm
Categories=JetBrains
6. WebStorm
终端中输入以下命令:
$ sudo nvim /usr/share/applications/WebStorm.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=WebStorm
GenericName=WebStorm2021
Comment=WebStorm:The Web IDE
Exec="/home/yumingmin/softwares/WebStorm-211.7142.46/bin/webstorm.sh"
Icon=/home/yumingmin/softwares/WebStorm-211.7142.46/bin/webstorm.png
Terminal=webstorm
Categories=JetBrains
7. Clion
终端中输入以下命令:
$ sudo nvim /usr/share/applications/Clion.desktop
添加如下内容:
[Desktop Entry]
Type=Application
Name=Clion
GenericName=Clion2021
Comment=Clion:The C IDE
Exec="/home/yumingmin/softwares/clion-2021.1.1/bin/clion.sh"
Icon=/home/yumingmin/softwares/clion-2021.1.1/bin/clion.png
Terminal=clion
Categories=JetBrains