1) Create a file in / usr / share / applications: pycharm.desktop (touch, gedit, nano commands, etc.)
cd / usr / share / applications
sudo gedit pycharm.desktop
2) Edit this file and add the following content
[Desktop Entry]
Version = 1.0
Type = Application
Name = Pycharm
Icon = / home / mengdan / Downloads / pycharm-2018.2.1 / bin / pycharm.png
Exec = sh /home/mengdan/Downloads/pycharm-2018.2.1/bin /pycharm.sh
MimeType = application / x-py;
Name [en_US] = pycharm
Note that here the absolute path of Icon and Exec can be viewed from the properties of the file:
3) Open the software through a shortcut, at this time a shortcut appears on the left side of the desktop, and then lock to the left side of the desktop