If you have just created your own script which does a lot of things and you want to save it as an application with an icon that has your image then read on :
Create a file with name as.desktop in your /usr/share/applications folder with content as following.
Here is an example where I wanted to add some application (sublime IDE ) to GNOME task bar. All you have to do is replace Name=sublime with name of your aplication and then name your file accordingly(in my case sublime.desktop).
[Desktop Entry]
Version=1.0
Name=sublime
Comment=IDE
Exec=/home/vishu/Downloads/Sublime\ Text\ 2/sublime_text
Icon=/home/vishu/Downloads/Sublime Text 2/Icon/48x48/sublime_text.png
Terminal=false
Type=Application
Categories=Utility;Application;
Icon is the .png file you would like to use as your icon.
Exec is the path of you executable script or application
Make the file executable.
Now press windows start on your computer and type in the name in the GNOME search bar.Create a file with name as
Here is an example where I wanted to add some application (sublime IDE ) to GNOME task bar. All you have to do is replace Name=sublime with name of your aplication and then name your file accordingly(in my case sublime.desktop).
[Desktop Entry]
Version=1.0
Name=sublime
Comment=IDE
Exec=/home/vishu/Downloads/Sublime\ Text\ 2/sublime_text
Icon=/home/vishu/Downloads/Sublime Text 2/Icon/48x48/sublime_text.png
Terminal=false
Type=Application
Categories=Utility;Application;
You should be able to see the application getting launched.
Right click and select Keep in Launcher to lock it there.