这里以pycharm为例
创建xxx.desktop,格式如下,修改对应的路径即可
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm1
Comment=Pycharm1:The Python IDE
Exec="/home/xc/Downloads/pycharm-community-2021.1/bin/pycharm.sh" %f
Icon=/home/xc/Downloads/pycharm-community-2021.1/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
可以把xxx.desktop放在当前用户的Desktop下,或者全局目录usr/share/applications(可所有用户使用该软件)