Create Shortcut under Ubuntu, for example to Pycharm

First, create a file in usr / share / applications: pycharm.desktop (touch, nano, gedit instructions, etc.)

  cd/usr/share/applications

  sudo gedit pycharm.desktop

Second, edit the file (pycharm.desktop), enter the following:

  [Desktop Entry]
  Version=2.0
  Type=Application
  Name=Pycharm
  Icon=/home/tim-lyg/softwares/pycharm-2018.2.6/bin/pycharm.png
  Exec=sh /home/tim-lyg/softwares/pycharm-2018.2.6/bin/pycharm.sh
  MimeType=application/x-py;

  Name[en_US]=pycharm

Note: Icon and Exec as pycharm file absolute path to adjust the content marked red in accordance with the downloaded version and storage path.

 

Reference: https://blog.csdn.net/qq_15192373/article/details/81091278

Guess you like

Origin www.cnblogs.com/qihuang94/p/12507640.html
Recommended