- sudo vim /usr/share/application/pycharm.desktop
- 配置文件
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Pycharm
Comment=pycharm-2019.2
Exec=/home/cj/Software/pycharm-2019.2/bin/pycharm.sh
Icon=/home/cj/Software/pycharm-2019.2/bin/pycharm.png
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;
- 添加权限
sudo chmod a+x /usr/share/applications/pycharm.desktop
网友评论