1.新建一个文件,pycharm.desktop
2.添加如下内容至文件里
[Desktop Entry]
Version=1.0
Type=Application
Name=Pycharm
#home/yun/下载/pycharm-community-2018.3.3/bin,此处为下载pycharm的绝对路径,根据实际情况修改/
Icon=/home/yun/pycharm-community-2018.3.3/bin/pycharm.png
Exec=/home/test/yun/pycharm-community-2018.3.3/bin/pycharm.sh
MimeType=application/x-py;
Name[en_US]=pycharm