kdeconnect-app fails to startup
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?
2 Answers
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:
- Thirst step is to put android device and Linux machine on the same network e.g. 10.42.10.1/24
- On Android device, get from play-store the
kdeconnectapplication. - Next, we have to, retrieve
kdeconnectfrom distro's repository$ sudo apt install kdeconnect - Run:
$ kdeconnect-cli -lwhich will list the connected devices and run thekdeconnectddaemon. - Then we can run:
$ kdeconnect-indicatorwhich will put a grey icon 'rectangle with [k] inside' in the task-bar from where you can configure the interaction with the android device. - 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) - That all, you can try doing a copy to clipboard on Linux and paste the content to android, or somethings else.
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.
0