So a simple fix would be to ship ubuntu-ui-toolkit-gallery.desktop in /usr/share/applications.
Another fix would be modify ubuntu-ui-toolkit-launcher to allow teaching UAL about a custom app on a temporary basis for such custom launches that aren't apps that we want to ship, but just apps-of-convenience. To do this, it could copy the provided desktop file into ~/.local/share/applications and delete it when done.
OR we could add API to UAL that allows using a custom desktop file.
So a simple fix would be to ship ubuntu- ui-toolkit- gallery. desktop in /usr/share/ applications.
Another fix would be modify ubuntu- ui-toolkit- launcher to allow teaching UAL about a custom app on a temporary basis for such custom launches that aren't apps that we want to ship, but just apps-of- convenience. To do this, it could copy the provided desktop file into ~/.local/ share/applicati ons and delete it when done.
OR we could add API to UAL that allows using a custom desktop file.
I'm partial to options 1 and/or 2.