Centos7 将应用添加快捷方式到applications 中以pycham为例[ubuntu]适用

安装版本pycharm-2019.1.3

安装路径:/opt/pycharm-2019.1.3/

vim  /usr/share/applications/pycharm.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Pycharm
Comment=pycharm-2019.1.3
Exec=/opt/pycharm-2019.1.3/bin/pycharm.sh
Icon=/opt/pycharm-2019.1.3/bin/pycharm.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;
# 给文件赋予执行权限
chmod a+x /usr/share/applications/pycharm.desktop

 

转载于:https://www.cnblogs.com/hszstudypy/p/11608318.html

你可能感兴趣的:(Centos7 将应用添加快捷方式到applications 中以pycham为例[ubuntu]适用)