Score:0

kdeconnect-app fails to startup

uz flag

I am running UbuntuStudio 20.04 and up until recently was able to use KDEConnect without any issues.

Now KDEConnect does not start up. If I run kdeconnect-app on a terminal, I get the following error.

qt5ct: using qt5ct plugin QQmlApplicationEngine failed to load component qrc:/qml/main.qml:93 Cannot assign object of type "DevicesModel" to property of type "QAbstractItemModel*" as the former is neither the same as the latter nor a sub-class of it.

I have not done any changes apart from perhaps one regular system update.

Any ideas on how to fix this issue?

Score:1
us flag

I've no idea to fix it (tried to build from source but 20.04 haven't good lib version for qt5 Ext.) I'm running linuxmint distro with ubuntu 20.04. I use redmi note 10 5g with kdeconnect.apk (googleplay) A workaround solution is to not use kdeconnect-app. Just use kdeconnect-cli and kdeconnect-indicator (gui-parameters).

Some explanations:

Due to a bug with official Debian package file:

$ kdeconnect-app 
qt5ct: using qt5ct plugin
QQmlApplicationEngine failed to load component
qrc:/qml/main.qml:93 Cannot assign object of type "DevicesModel" to property of type
"QAbstractItemModel*" as the former is neither the same as the latter nor a sub-class of it.

We can make it working in another way:

  1. Thirst step is to put android device and Linux machine on the same network e.g. 10.42.10.1/24
  2. On Android device, get from play-store the kdeconnect application.
  3. Next, we have to, retrieve kdeconnect from distro's repository $ sudo apt install kdeconnect
  4. Run: $ kdeconnect-cli -l which will list the connected devices and run the kdeconnectd daemon.
  5. Then we can run: $ kdeconnect-indicator which will put a grey icon 'rectangle with [k] inside' in the task-bar from where you can configure the interaction with the android device.
  6. Go back to Android and run kdeconnect, after that, you will ask for pairing with Linux, (you have to accept the request on Linux machine)
  7. That all, you can try doing a copy to clipboard on Linux and paste the content to android, or somethings else.

cli Visual

configuration gui

uz flag
Yes, kdeconnect-cli works without any problems so this is a good workaround till the devs fix the issue. Thanks for sharing the solution.
Score:0
it flag

This has been fixed in KDEConnect 1.4.1 but latest version on apt is 1.4.0. reference

Until the package is updated, you should install KDEConnect from source. source repository

Score:0
jp flag

It appears that this bug has already been reported in launchpad. It seems stalled because of dependency problems.

What we can do in the meantime is bring Ubuntu developers their attention to this issue by subscribing to the bug report. If you are using GNOME, you can try GSConnect.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.