I created a .desktop launcher:
#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Categories=Application Terminal=true Name=MyApp Name[en_US]=MyApp Comment=MyApp Exec=/home/user/script.sh Icon=/usr/share/icons/Humanity/categories/64/package_network.svg
The shortcut is attached to my Unity launcher and shows the correct icon. When I click on the icon in the Unity launcher, it briefly flashes and then opens up a terminal and the icon is "merged" with all my other open terminals. Hence, the icon for my .desktop changes into the standard terminal icon.
My scripts only exists when pressing Ctrl-C, otherwise it keeps running in the background. How can I force the launcher's icon to stay with my custom icon instead of showing the standard terminal icon? I cannot change:
since my script shows useful output and I want it to show in the terminal, just with a separate custom icon in the Unity launcher, instead of Ubuntu interpreting it as just another termianl.