方法一
- 打开终端,输入命令:
sudo gedit /usr/share/applications/pycharm.desktop
,创建pycharm.desktop文件 - 在pycharm.desktop文件中输入以下内容:
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /home/hugo/Downloads/pycharm-community-2023.1.3/bin/pycharm.sh
Icon=/home/hugo/Downloads/pycharm-community-2023.1.3/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
方法二
- 打开pycharm所在目录,运行命令:
./bin/pycharm.sh
,打开pycharm; - 点击tools;
- 点击Create Desktop Entry;
- add to favorites;