Create shortcuts that come with pycharm under ubuntu

After downloading pycharm under ubuntu, you need to open the program in bin/pycharm.sh in the decompression directory. There are three ways to create a shortcut:

Method 1, configure the desktop entity file and create pycharm.desktop

[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /home/oliver/下载/pycharm-community-2018.1.2/bin/pycharm.sh   (sh后面是pycharm.sh的路径,直接拖拽此sh文件到终端上即可自动生成此路径,一定要写正确!!!)
Icon=/home/oliver/下载/pycharm-community-2018.1.2/bin/pycharm.png   (同理,此项也可拖拽生成路径,免去了手写的烦恼)
Terminal=pycharm
Categories=Pycharm;

Method 2, set the startup command as a script, put it in the home directory, and execute the script when starting.

sh /home/xxx/my_install/pycharm-community-2022.3.3/bin/pycharm.sh

Method 3, [ recommended ] Create directly with pycham. Start pycharm, Tools->Create Desktop Entry

Guess you like

Origin blog.csdn.net/u010420283/article/details/129639465