Bug 412986

Summary: Launch button doesn't launch any PackageKit-installed apps on openSUSE
Product: [Applications] Discover Reporter: Nate Graham <nate>
Component: PackageKitAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: admin, aleixpol, nakei911
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://github.com/hughsie/PackageKit/issues/351
See Also: https://bugs.kde.org/show_bug.cgi?id=400779
Latest Commit: Version Fixed In: 5.17.3
Sentry Crash Report:

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