# Adding application launch icon to favorites¶

2. Find path to the executable of your application by running (replace brackets with name of applicaion):

which [name_application]

Copy the path from this output.

3. Create\edit the .desktop file for the application by running the command (remember to edit the application name):

gedit Desktop/[name_application].desktop

4. Add the following lines (replace the items in square brackets with your respect application) and save the file with the extension .desktop (e.g. [application name].desktop):

#!/usr/bin/env xdg-open

[Desktop Entry]
Type=Application
Icon=[path_to_icon_file]

5. Right click on the file (should now be on your desktop), select properties, then permissions and select Allow executing file as program
sudo mv /Desktop/*[name_of_file]* /usr/share/applications/