Bug 392737

Summary: Ability to use discover with LXQt
Product: [Applications] Discover Reporter: robert <maxl1234>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version: 5.12.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description robert 2018-04-04 19:51:39 UTC
Hello,

I want to use plasma-discover with LXQt.
Is this something which should work without needing to install half of the whole KDE, or is it not really intended to work with a different DE?

If I execute “sudo apt install plasma-discover plasma-discover-backend-flatpak” the packages shown at  the end getting installed.


If I try to start plasma-discover I get the following error:
-------------------------------------------------------------------------------------------------------------------
QQmlApplicationEngine failed to load component
qrc:/qml/DiscoverWindow.qml:194 Type DiscoverDrawer unavailable
qrc:/qml/DiscoverDrawer.qml:107 Type ProgressView unavailable
qrc:/qml/ProgressView.qml:5 module "org.kde.kquickcontrolsaddons" is not installed

Errors when loading the GUI
setting currentApplicationBackend PackageKitBackend(0x5632d0a08ee0)


If I then install also “qml-module-org-kde-kquickcontrolsaddons”, plasma-discover starts, but the GUI is not showing any packages and I get more errors:
-------------------------------------------------------------------------------------------------------------------
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/PageRow.qml:436: Error: Error while loading page: qrc:/qml/BrowsingPage.qml:62 Type ApplicationDelegate unavailable
qrc:/qml/ApplicationDelegate.qml:26 module "org.kde.kcoreaddons" is not installed

setting currentApplicationBackend PackageKitBackend(0x55e0b8fd4230)
failed PackageKit::Transaction::Exit(ExitUnknown) PackageKit::Transaction(0x55e0b8ebabc0)
Transaction error:  "Too few items to process" PackageKit::Transaction(0x55e0b8ebabc0)
qml: message: Too few items to process
failed PackageKit::Transaction::Exit(ExitFailed) PackageKit::Transaction(0x55e0b8ebabc0)
failed PackageKit::Transaction::Exit(ExitUnknown) PackageKit::Transaction(0x55e0b8ebaf60)
Transaction error:  "Too few items to process" PackageKit::Transaction(0x55e0b8ebaf60)
qml: message: Too few items to process
failed PackageKit::Transaction::Exit(ExitFailed) PackageKit::Transaction(0x55e0b8ebaf60)
trying to load "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so" from "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so"
trying to load "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so" from "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/http.so"
kf5.kio.kio_http: Can't communicate with kded_kcookiejar!
qrc:/qml/DiscoverDrawer.qml:164: TypeError: Cannot read property 'canNavigate' of null 
-------------------------------------------------------------------------------------------------------------------


As I said, I know that plasma-discover is designed for KDE, but it would be really cool if it also would work on LXQt.

Btw.: I also have set “KDE_FORK_SLAVES=1” in my environment.




Packages which where installed with “sudo apt install plasma-discover plasma-discover-backend-flatpak”
-------------------------------------------------------------------------------------------------------------------
The following additional packages will be installed:

  appstream bubblewrap flatpak libappstream-glib8 libappstreamqt2 libflatpak0 libgcab-1.0-0 libkf5itemmodels5 libkf5kirigami2-5 libkf5newstuffcore5 libostree-1-1 libpackagekitqt5-1 libpython3.6
  libqt5designer5 libqt5help5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libqt5sql5 libqt5sql5-sqlite plasma-discover-common python3-pyqt5 python3-sip python3-software-properties
  qml-module-org-kde-kirigami2 qml-module-org-kde-newstuff qml-module-qtqml-models2 qml-module-qtquick-controls2 qml-module-qtquick-templates2 software-properties-common software-properties-kde
  xdg-desktop-portal xdg-desktop-portal-gtk


Suggested packages:

  curl python3-pyqt5-dbg accountsservice


The following NEW packages will be installed:

  appstream bubblewrap flatpak libappstream-glib8 libappstreamqt2 libflatpak0 libgcab-1.0-0 libkf5itemmodels5 libkf5kirigami2-5 libkf5newstuffcore5 libostree-1-1 libpackagekitqt5-1 libpython3.6
  libqt5designer5 libqt5help5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libqt5sql5 libqt5sql5-sqlite plasma-discover plasma-discover-backend-flatpak plasma-discover-common python3-pyqt5 python3-sip
  python3-software-properties qml-module-org-kde-kirigami2 qml-module-org-kde-newstuff qml-module-qtqml-models2 qml-module-qtquick-controls2 qml-module-qtquick-templates2 software-properties-common
  software-properties-kde xdg-desktop-portal xdg-desktop-portal-gtk

0 upgraded, 34 newly installed, 0 to remove and 0 not upgraded.
Need to get 18,6 MB of archives.
After this operation, 54,9 MB of additional disk space will be used.
Do you want to continue? [Y/n]


Best Regards
Robert
Comment 1 Nate Graham 2018-04-04 21:44:16 UTC
Yes, Discover should definitely work in other desktop environments. However, what you describe is a packaging issue in Debian; packages that are required aren't getting installed by default, boo! This is probably masked by the fact that the missing packages are always installed for other reasons in a KDE Plasma environment, so nobody noticed that the Discover packaging wasn't marking them as dependencies correctly. Please report this downstream to the Debian folks. Thanks for the bug report!
Comment 2 robert 2018-04-04 22:17:39 UTC
Thank you Nate, opened this bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894857
Comment 3 Aleix Pol 2018-04-04 23:35:48 UTC
Your bug report made me realise we were including unnecessary stuff, should be included in the next discover 5.12 release.

https://commits.kde.org/discover/938da4ecc3261bc3bfd0e51891a09f9f117a2c5c
Comment 4 Nate Graham 2018-04-05 20:41:38 UTC
And looks like it's been fixed in Debian already!