flatpak is launched while displaying a native app
Please describe the issue you’re experiencing:
When having several versions (native and flatpak) of the same app installed in parallel, launching them from GNOME Software launches only one of them (flatpak) disregarding the currently displayed description page. This is counter-intuitive.
Steps to Reproduce:
- Install GNOME Boxes from Flathub (as an example app).
- Go to the installed apps tab in GNOME Software.
- Scroll for Boxes. You'll find two options going one right after another.
- Click on one of the options to go to a description page of the app.
- If the description page says that the app is from "Flathub (Flatpak)" (instead of "Fedora Linux (RPM)" on Fedora, for example) as displayed in the top right corner, click the back button in the top left corner and choose another option.
- Click the launch button.
Actual results: The flatpak app is launched.
Expected results: The native app was expected to launch.
Additional info: I already have some VMs in the native Boxes. Those do not appear in the flatpak version. I installed the flatpak version to check GNOME OS Nightly since it is not possible with the native version of Boxes. I can run the native or the flatpak version of Boxes from the terminal with respective commands. I can launch the flatpak version from the apps drawer of the GNOME shell (it silently replaced the native app during installation).
What Linux distribution are you using, and what kind of package (RPM, deb, flatpak, etc.) are you experiencing the problem with?
$ uname -a
Linux fedora 5.18.5-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -q gnome-software
gnome-software-42.2-2.fc36.x86_64
$ rpm -q gnome-boxes
gnome-boxes-42.1-1.fc36.x86_64
$ LC_ALL=C flatpak info org.gnome.Boxes | grep Version
Version: 42.1
Please attach a log of the issue, by running the following commands, reproducing the issue, and then attaching
gnome-software.log
here:
pkill gnome-software
gnome-software --verbose &> gnome-software.log
Here is the log while reproducing the steps from 2 to 6 above: gnome-software.log
If the problem is with the user interface, please attach a screenshot or video of it. Please attach the file directly rather than linking to an external hosting service, as external files are likely to be deleted after a while.
This doesn't seem to be an interface bug, though it makes the interface misleading.
I looked through the issues and these seem to be related: #1754 (closed), #549.
This issue was first reported downstream: https://bugzilla.redhat.com/show_bug.cgi?id=2098078