Bug 383823 - flatpak standalone doesnt work
Summary: flatpak standalone doesnt work
Status: RESOLVED NOT A BUG
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: unspecified
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
: 382339 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-21 21:40 UTC by Ulrich Müller
Modified: 2018-01-16 16:59 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller 2017-08-21 21:40:13 UTC
I use LXQt and wanted to use discover (flatpak version) on leap 42.3 to manage flatpaks. sadly I got this when running:

flatpak run org.kde.discover
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: r600
The file  "/home/user/.var/app/org.kde.discover/data/knewstuff3/discover_ktexteditor_codesnippets_core.knsregistry"  could not be opened.
falling back applications backend to -1
error: "Premature end of document." in QUrl("http://download.kde.org/ocs/providers.xml")
trying to load "/usr/lib/plugins/kf5/kio/file.so" from "/usr/lib/plugins/kf5/kio/file.so"
org.kde.knewstuff.core: "Host download.kde.org not found"
kns error "/app/etc/xdg/discover_ktexteditor_codesnippets_core.knsrc" "Loading of providers from file: http://download.kde.org/ocs/providers.xml failed"
qml: message: discover_ktexteditor_codesnippets_core.knsrc: Loading of providers from file: http://download.kde.org/ocs/providers.xml failed
trying to load "/usr/lib/plugins/kf5/kio/http.so" from "/usr/lib/plugins/kf5/kio/http.so"

I tried to work around by granting rjghts, but this seems to be only the easy part of the problem:


flatpak run --socket=system-bus --socket=x11 --share=ipc --device=dri --filesystem=host --share=network org.kde.discover
The file  "/home/user/.var/app/org.kde.discover/data/knewstuff3/discover_ktexteditor_codesnippets_core.knsregistry"  could not be opened.
falling back applications backend to -1
trying to load "/usr/lib/plugins/kf5/kio/file.so" from "/usr/lib/plugins/kf5/kio/file.so"
trying to load "/usr/lib/plugins/kf5/kio/http.so" from "/usr/lib/plugins/kf5/kio/http.so"
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
kio_http_cache_cleaner: Already running!
QThreadStorage: Thread 0x2723790 exited after QThreadStorage 14 destroyed
Comment 1 Ulrich Müller 2017-08-21 21:42:49 UTC
window pops up, but i cant do anything useful like change settings or whatever
Comment 2 Aleix Pol 2017-09-04 15:04:07 UTC
Yes, Discover on flatpak isn't able to do this at the moment, we'd need to make the bundle know more about flatpak. I'm pretty sure it's doable but needs some work.

Keep in mind that Discover is available on opensuse on the other hand.
Comment 3 Ulrich Müller 2017-09-06 08:14:31 UTC
thank you for your reply.
Its sadly not available in a version that can manage flatpak. ;-(
Is there any way I could help?
Comment 4 Aleix Pol 2017-09-07 14:30:13 UTC
https://cgit.kde.org/flatpak-kde-applications.git/tree/org.kde.discover.json

Feel free to extend it to include flatpak, I'll be happy to review it and merge it if it works. :)
Comment 5 Nate Graham 2017-11-07 17:40:58 UTC
*** Bug 382339 has been marked as a duplicate of this bug. ***
Comment 6 Aleix Pol 2018-01-16 16:59:25 UTC
This bug isn't going anywhere. Patches to Discover and Discover flatpak packaging welcome.