void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.5k stars 2.11k forks source link

KDE Connect doesn't use user's qt theme and doesn't send files #50706

Open nuckle opened 3 months ago

nuckle commented 3 months ago

Is this a new report?

Yes

System Info

Void 6.6.32_1 x86_64 GenuineIntel notuptodate rrrmFFFFFFFF

Package(s) Affected

kdeconnect-24.02.2_2

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

A working qt theme and an ability to send file to other devices (android in this case)

Actual behaviour

Preview ![image](https://github.com/void-linux/void-packages/assets/37220313/52ae2c71-c9f1-4b37-847d-38318590c721)

Steps to reproduce

I updated the package recently and noticed this bug. Didn't change anything in my configuration. Other QT programs work fine

  1. Run kdeconnect-app
Luciogi commented 3 months ago

which DE or WM you are using?

nuckle commented 3 months ago

which DE or WM you are using?

The issue persists on Awesomewm and cinnamon

Luciogi commented 3 months ago

run it from terminal, share logs

nuckle commented 3 months ago

run it from terminal, share logs

kdeconnect-app
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:13:1: QML FindDevicesPage: Created graphical object was not placed in the graphics scene.
Dr64h commented 3 months ago
qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:13:1: QML FindDevicesPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:19:9: QML DevicePage: Created graphical object was not placed in the graphics scene.
kf.kio.filewidgets.kfilefiltercombo: Could not find file filter

I have this log under KDE. Sending files works only through Dolphin's context menu and from the phone to the PC.

https://bugs.kde.org/show_bug.cgi?id=485351

Luciogi commented 3 months ago

=

qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:13:1: QML FindDevicesPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:19:9: QML DevicePage: Created graphical object was not placed in the graphics scene.
kf.kio.filewidgets.kfilefiltercombo: Could not find file filter

I have this log under KDE. Sending files works only through Dolphin's context menu and from the phone to the PC.

https://bugs.kde.org/show_bug.cgi?id=485351

under kde sending from laptop to phone is working

Luciogi commented 3 months ago

try re-pairing devices

nuckle commented 3 months ago

My logs when I try to send a file to my phone

qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:13:1: QML FindDevicesPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:19:9: QML DevicePage: Created graphical object was not placed in the graphics scene.

I also get a notification on mobile to open the file, but it's empty. The folder "Drop" is also empty. I tried to re-pair devices, reinstall the package, clean data in .cache and .config, but it didn't change anything. Note: everything else works just fine: notifications, calls, clipboard sharing, etc

Luciogi commented 3 months ago

Sending file through dolphin, and applet works (use these as workaround) but not within window of kde connect

nuckle commented 3 weeks ago

Recently I found a related issue about a mismatching qt theme with a sort of "fix" for this

Similar issues posted earlier:

I use kvantum and seems like kdeconnect-app and kdeconnect-sms don't follow its theme like they used to do (without any tweaking)

kdeconnect-app ![image](https://github.com/user-attachments/assets/46f805cb-9a13-4c96-b7f3-a8c88981604d)

However, it kinda works in settings menu and sms

Settings ![image](https://github.com/user-attachments/assets/c089ea7e-0d39-474d-982b-f9d010791a32)
kdeconnect-sms ![image](https://github.com/user-attachments/assets/64251096-697b-4609-8fc6-0a7d351b318b)

Also it works fine in other parts of the app

kdeconnect-settings ![image](https://github.com/user-attachments/assets/280a4a22-7e9c-42da-968d-95271f13d4e6)

My current workaround is to simply add colors from a kde theme to ~/.config/kdeglobals

The result

kdeconnect-app ![image](https://github.com/user-attachments/assets/52f7124b-f49c-4518-b3e1-d99762f5ac48)
kdeconnect-sms ![image](https://github.com/user-attachments/assets/22d7fa31-2b45-4717-a46d-2dce7ef5d50f)

I also noticed that kdeconnectd stopped running automatically via dbus service when I run kdeconnect-app

Seems like it's a bug and it's described here

For me it works again when I change Exec field in /usr/share/dbus-1/services/org.kde.kdeconnect.service to kdeconnectd's full path

[D-BUS Service]
Name=org.kde.kdeconnect
Exec=/usr/bin/kdeconnectd

File transfer from KDE Connect App still doesn't work, but works fine from kdeconnect-cli or Dolphin

Debug info (without kdeconnectd running)

> kdeconnect-app
qt6ct: using qt6ct plugin
kf.i18n: Loading the "qt_" catalog failed for locale QLocale(English, Latin, United States)
kf.i18n: Loading the "qt_" catalog failed for locale QLocale(English, Latin, United States)
kf.i18n: Loading the "qtbase_" catalog failed for locale QLocale(English, Latin, United States)
kf.i18n: Loading the "qtscript_" catalog failed for locale QLocale(English, Latin, United States)
kf.i18n: Loading the "qtmultimedia_" catalog failed for locale QLocale(English, Latin, United States)
kf.i18n: Loading the "qtxmlpatterns_" catalog failed for locale QLocale(English, Latin, United States)
kf.kirigami.platform: Loading style plugin from "/usr/lib/qt6/plugins/kf6/kirigami/platform/org.kde.desktop.so"
error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")
error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")
kdeconnect.interfaces: dbus interface not valid
error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")
error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")
kdeconnect.interfaces: dbus interface not valid
qrc:/qt/qml/org/kde/kdeconnect/app/FindDevicesPage.qml:13:1: QML FindDevicesPage: Created graphical object was not placed in the graphics scene.
kdeconnect.interfaces: dbus interface not valid
error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")
qt6ct: palette support is disabled
qrc:/qt/qml/org/kde/kdeconnect/DBusProperty.qml:48: ReferenceError: write is not defined