Under Ubuntu add programs to the application

        Sometimes you have installed the software can not be found in the application, it can be opened only in the key input command, so that efficiency is too much trouble, and can not be set as the default launcher. Here to tell us about how the program installed on the desktop or in the open application.

Environment: Ubuntu 18.04

Templates are as follows:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=pycharm
Parley = Pycharm3
Comment=Pycharm2018:The Python IDE
Exec = " position to start the script " 
Icon = Photos Location
Terminal=false
Categories=Application;Development;

 

Pycharm to set an example:

$ South you /usr/share/applications/pycharm.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=pycharm
Parley = Pycharm3
Comment=Pycharm2018:The Python IDE
Exec = "/ home / jiangfeng / download /pycharm-2019.3/bin/pycharm.sh" 
Icon = / home / jiangfeng / download /pycharm-2019.3/bin/pycharm.png
Terminal=false
Categories=Application;Development;

## line mode, type: wq


## gives scripts execute permissions
$ sudo chmod +x /usr/share/applications/pycharm.desktop

  Note: Exec and Icon for their own path; Exec script to start position, Icon icon position.

If you do not know the path where you can use the find command to view it.

Formality currency and: sudo find / -iname file

sudo find / -iname "pycharm.sh"
sudo find / -iname "pycharm.png"

  

Guess you like

Origin www.cnblogs.com/feng0919/p/12080484.html