If I save an executable MyApp in ~/Desktop, I can right click on the icon, select Properties from menu. In the Properties window I can now left click on the icon to open Select custom icon window. Next I double click on the required .png file to use as custom icon and close Properties window. This changes the executable’s desktop icon to the selected custom .png file.
Is there a way to do the above procedure using bash shell commands?
The selected custom icon .png file doesn’t appear to be saved in a MyApp.desktop file, so where is this setting saved?