I created a custom .desktop entry in my home directory
~/.local/share/applications/startMyApp.desktop
I created it so that it would use an xterm instead of gnome-terminal. I want it to have a different look in the dock from my gnome-terminals that I use interactively.
The startMyApp.desktop
looks like:
[Desktop Entry]
Type=Application
Name=MyScript
Terminal=false
Exec=xterm -e myScript.sh
Icon=myIcon.png
I have created an icon file in ~/.icons/myIcon.png
The icon appears correctly in the default file browser. When opened from a file browser, it executes the script in an xterm as expected, however, the icon in the dock appears as some other generic xterm icon. Where does that icon comes from? Is it embedded in the binary?
How can I change this? I want the icon in the dock to appear that same as the one specified in the .desktop
file. Applications bundled with Ubuntu have the same icon in the dock when launched (aside from the red dots indicating how many windows are open).