gs-details-page: Hide "Launch" button if the application cannot be launched
Submitted by jre..@..il.com
Link to original bug (#777838)
Description
We just added AppStream support to Wine (will upstream it soon, see https://bugs.debian.org/848839).
Wine is not a graphical app itself (although it has a few graphical helper apps), but is usually used to run other graphical Windows apps. Wine has a .desktop file, but this is only used to associate file types with Wine. It can't be used to start Wine, and it has "NoDisplay=true". Besides that, for unrelated reasons we don't install this .desktop file at all in Debian.
So there is only the appdata.xml, but no .desktop file.
But g-s still shows a "Launch" button, which obviously doesn't work.
Is it possible to not show this button if there is no application available to start?
Edited by Milan Crha