Ubuntu16.04中如何将pycharm添加到桌面快捷方式

1.终端命令行打开pycharm后,启动器内便会出现,右键-->锁定到启动器

2.tools---->create desktop entry

3.(没实际操作)

(1)终端输入:
sudo gedit /usr/share/applications/Pycharm.desktop
(2)会自动打开一个便签,在便签里粘贴模板(只需要修改 ExecIcon的值):
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE

Exec=sh /Downloads/pycharm-2018.1.2/bin/pycharm.sh -desktop (下划线部分是安装地址)
Icon= /Downloads/pycharm-2018.1.2/bin/pycharm.png (下划线部分是Pycharm内部的图片地址)
Terminal=pycharm
Categories=Pycharm;

(3)若无反应,可尝试类似于如下路径:
Exec=sh /home/fungtion(用户名)/Downloads/pycharm-2018.1.2/bin/pycharm.sh
Icon=/home/fungtion(用户名)/Downloads/pycharm-2018.1.2/bin/pycharm.png


注:方法3参考 知乎作者:Wang Fungtion,链接:https://www.zhihu.com/question/19672568/answer/47788105



你可能感兴趣的:(Python)