I got this idea from Android Studio/IntelliJ where they have a menu option to “Create Desktop entry…” and it generates a .desktop file for Gnome for example.
I created an entry for myself, but I didn’t know where to get the icons at first. And I still don’t know where the green icon for Testnet comes from. It would be convenient to have this option on bitcoin-qt as well.