I created a shortcut for sublime text 3 (sublime_text.desktop)[The file with the good looking icon] and this happened,
The code i used in sublime_text.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Sublime Text
Comment=Sophisticated text editor for code, markup and prose
Icon=sublime-text
Exec=./sublime_text
Terminal=true
Categories=Development;IDE;
I've used many similar examples but didnt work(and yes double clicking sublime_text executable works).