It still only supports running one application, but it now favours apps that provide a desktop file, and the snap's main app as a tie breaker. For Libreoffice, this reliably picks the main "libreoffice" binary.
It also launches the app via the desktop file if available, so we don't have to guess whether it needs a terminal in that case.
I put together a gnome-software patch to use the extra info from mvo's snapd change:
https:/ /code.launchpad .net/~jamesh/ gnome-software/ +git/gnome- software/ +ref/pick- launch- app
It still only supports running one application, but it now favours apps that provide a desktop file, and the snap's main app as a tie breaker. For Libreoffice, this reliably picks the main "libreoffice" binary.
It also launches the app via the desktop file if available, so we don't have to guess whether it needs a terminal in that case.