1.在桌面创建pycharm.desktop
touch pycharm.desktop
sudo gedit pycharm.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name=PyCharm
Icon=/home/loess/pycharm-professional-2020.3.3/pycharm-2020.3.3/bin/pycharm.png
Exec=bash -i -c "//home/loess/pycharm-professional-2020.3.3/pycharm-2020.3.3/bin/pycharm.sh" %f
Comment=The Drive to Develop
MimeType=application/x-py
Name[zh_CN]=Pycharm.desktop
3.调整权限
sudo chmod 777 pycharm.desktop
4.启动
这里会报错启动程序还没被标记为信任
!!!
将desktop文件夹内的这个 pycharm.desktop文件复制到ubuntu可视的桌面上
程序可以运行了 且不报错
原因:未知,留坑