This answer is to create shortcuts for any Applications.
what you have to do is just download a .png file that you want to set as "icon"
and find the path from where you are executing(opening) it from terminal
In my case my my png file is in /usr/share/icons/matlab.png
and executable "matlab" file is at /usr/local/MATLAB/MATLAB_Production_Server/R2015a/bin/
now open any text editor "gedit" and paste below commands and replace respective paths and save the file with name.desktop
where name
is anything you want.
[Note: To create launcher on DOC I will recommend you to save name.desktop
on Desktop
folder.]
[Desktop Entry]
Version=1.0
Name=Matlab R2015a
Comment=MATLAB shortcut!
Exec=/usr/local/MATLAB/MATLAB_Production_Server/R2015a/bin/matlab
Icon=/usr/share/icons/matlab.png
Terminal=true
Type=Application
Categories=Utility;Application;
now right click on file goto--->properties-->permissions
and at bottom select Allow executing file as program
Hurray you did it.
Now just double click and enjoy the shortcut.