Ubuntu添加快捷方式

Ubuntu添加快捷方式

来自https://www.hsli.top

以Pycharm为例

终端输入:

1
sudo gedit /usr/share/applications/Pycharm.desktop

粘贴模板:

1
2
3
4
5
6
7
8
9
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /opt/pycharm/bin/pycharm.sh
Icon=/opt/pycharm/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;

其中pycharm.shpycharm.png分别指向Pycharm解压目录的pycharm.shpycharm.png

保存后,即可在搜索栏找到PyCharm

如果文章有用,请随意打赏