Bug 412986 - Launch button doesn't launch any PackageKit-installed apps on openSUSE
Summary: Launch button doesn't launch any PackageKit-installed apps on openSUSE
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: PackageKit (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL: https://github.com/hughsie/PackageKit...
Keywords:
: 413897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-15 16:54 UTC by Nate Graham
Modified: 2019-11-07 16:09 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.17.3
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2019-10-15 16:54:56 UTC
Discover from git master


STEPS TO REPRODUCE
1. Use openSUSE Tumbleweed
2. Open Discover and install a distro-provided app (e.g. not Flatpak; it works for Flatpak apps)
3. Click the Launch button


OBSERVED RESULT
Nothing happens. Nothing is printed to the console, either


EXPECTED RESULT
The app launches
Comment 1 Dan Leinir Turthra Jensen 2019-10-16 08:38:39 UTC
Can confirm with Discover master on Tumbleweed. Will take a look, see what's going on.
Comment 2 Aleix Pol 2019-10-28 18:57:52 UTC
Can you confirm that the applications are properly coming from AppStream? they should show a nice icon, screenshots and descriptions.

I'll try adding some debug information.
Comment 3 Aleix Pol 2019-10-28 18:58:45 UTC
Git commit 72a68025e7bfaee5c456b884fa0f3d4d30f95433 by Aleix Pol.
Committed on 28/10/2019 at 18:58.
Pushed by apol into branch 'Plasma/5.17'.

pk: notify about problems regarding file listing

It could help diagnosing why this code doesn't work on opensuse.

M  +1    -0    libdiscover/backends/PackageKitBackend/AppPackageKitResource.cpp

https://commits.kde.org/discover/72a68025e7bfaee5c456b884fa0f3d4d30f95433
Comment 4 Nate Graham 2019-10-28 19:11:27 UTC
Yeah they're definitely coming from AppStream.

Also I can no longer reproduce this. Since Dan could also reproduce it, is it possible that something got fixed on the openSUSE side?
Comment 5 Nate Graham 2019-10-28 19:11:59 UTC
Oh so sorry, never mind, I can still reproduce it.
Comment 6 Nate Graham 2019-11-07 14:16:04 UTC
*** Bug 413897 has been marked as a duplicate of this bug. ***
Comment 7 Aleix Pol 2019-11-07 15:38:24 UTC
I looked into it, it's an issue in the zypper backend: When we ask it the package files, it gives us a ;-separated list instead of a list of strings. Will report upstream and see if we can workaround it.
Comment 9 Nate Graham 2019-11-07 15:55:44 UTC
Thanks for investigating, Aleix!
Comment 10 Aleix Pol 2019-11-07 16:08:32 UTC
Git commit 6e752399db71b8942a3b5c184206b33b115b1410 by Aleix Pol.
Committed on 07/11/2019 at 16:07.
Pushed by apol into branch 'Plasma/5.17'.

pk+suse: include a hack to allow apps to be executed

This workarounds the following opensuse bug where the user can't execute
applications: https://github.com/hughsie/PackageKit/issues/351

M  +7    -1    libdiscover/backends/PackageKitBackend/AppPackageKitResource.cpp

https://commits.kde.org/discover/6e752399db71b8942a3b5c184206b33b115b1410