KDE Connect is unable to start kdeconnectd via dbus. The app starts, but no devices are discoverable or connectable. Reproducible: Always Steps to Reproduce: Either start KDE connect from a terminal (using kdeconnect-app) or from the menus in the desktop. Actual Results: The kde connect app appears, but you are unable to see or connect to any devices. The output is as follows: 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") qrc:/qt/qml/org/kde/kdeconnect/DBusProperty.qml:48: ReferenceError: write is not defined Expected Results: Devices should be detectable and discoverable via kdeconnectd. If I edit /usr/share/dbus-1/services/org.kde.kdeconnect.service, and change the Exec line to the full path of kdeconnectd (/usr/bin/kdeconnectd) I am able to run kde-connect with no issues. Not sure what the underlying cause is though. Either dbus is not getting the correct $PATH, or there's been a change where the full path is required. This is on full ~amd64 using kde plasma 6.1, and kdeconnect 24.05.1. Also on wayland if that makes a difference, did not try on xorg.
Why you no show us `emerge --info kdeconnect`?
Created attachment 896448 [details] emerge --info kdeconnect I'm not the original poster, but I have the same issue and the same workaround helps. emerge --info kdeconnect is attached
Created attachment 896449 [details] emerge --info kdeconnect Confirming this bug as well. Plasma 6.1.0
Confirmed in KDE Connect kdeconnect.app 24.05.1 Error message: 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. emerge --info: repomansez .xyz / files/00PMFkTL.txt (spaces because new account)
Latest update (kde-misc/kdeconnect-24.05.2:6::gentoo [24.05.1:6::gentoo]) has solved the issue for me!
I can't figure out what would've fixed it (repomansez shared their qlop with me).
Yeah, also not a single code change from 25.04.1 to .2.
let's call it fixed, anyway?
I have the same error with kde-misc/kdeconnect-24.05.2 $ kdeconnect-settings 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") 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
Created attachment 903552 [details] emerge --info kde-connect
Reproduced on 24.05.2 and ~24.08.1 ~amd64 Always get the message: error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory") error: Failed to execute program org.kde.kdeconnect: No such file or directory
Created attachment 904913 [details] emerge --info kde-misc/kdeconnect
I observe the same problem with 24.08.1: $ kdeconnect-app 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") qml: failed call DaemonDbusInterface(0x55ef9cddc0c0) announcedName announcedNameChanged Failed to execute program org.kde.kdeconnect: No such file or directory
(In reply to Stephen Bosch from comment #13) > I observe the same problem with 24.08.1: > > $ kdeconnect-app > 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") > qml: failed call DaemonDbusInterface(0x55ef9cddc0c0) announcedName > announcedNameChanged Failed to execute program org.kde.kdeconnect: No such > file or directory $ cat /etc/portage/patches/kde-misc/kdeconnect/dbus_service.patch diff '--color=auto' -ur kdeconnect-kde-24.05.2.orig/daemon/org.kde.kdeconnect.service.in kdeconnect-kde-24.05.2/daemon/org.kde.kdeconnect.service.in --- kdeconnect-kde-24.05.2.orig/daemon/org.kde.kdeconnect.service.in 2024-06-28 17:08:24.000000000 -0400 +++ kdeconnect-kde-24.05.2/daemon/org.kde.kdeconnect.service.in 2024-09-09 19:37:48.779486870 -0400 @@ -1,3 +1,3 @@ [D-BUS Service] Name=org.kde.kdeconnect -Exec=kdeconnectd +Exec=/usr/bin/kdeconnectd worked for me
(In reply to Christophe PEREZ from comment #14) > $ cat /etc/portage/patches/kde-misc/kdeconnect/dbus_service.patch > diff '--color=auto' -ur > kdeconnect-kde-24.05.2.orig/daemon/org.kde.kdeconnect.service.in > kdeconnect-kde-24.05.2/daemon/org.kde.kdeconnect.service.in > --- kdeconnect-kde-24.05.2.orig/daemon/org.kde.kdeconnect.service.in > 2024-06-28 17:08:24.000000000 -0400 > +++ kdeconnect-kde-24.05.2/daemon/org.kde.kdeconnect.service.in 2024-09-09 > 19:37:48.779486870 -0400 > @@ -1,3 +1,3 @@ > [D-BUS Service] > Name=org.kde.kdeconnect > -Exec=kdeconnectd > +Exec=/usr/bin/kdeconnectd > > worked for me Thanks, Christoph, I had done that and it works, but the package also needs to be fixed so that the correct path is written to daemon/org.kde.kdeconnect.service.in.
(In reply to Stephen Bosch from comment #15) > Thanks, Christoph, I had done that and it works, but the package also needs > to be fixed so that the correct path is written to > daemon/org.kde.kdeconnect.service.in. Of course. https://develop.kde.org/docs/features/d-bus/dbus_autostart_services/ tells : "Unlike .desktop files, though, the Exec line must contain the full path to the application that is to be started." So Exec must be filled with full pathname to kdeconnectd $ cat /usr/share/dbus-1/services/org.kde.kdeconnect.service [D-BUS Service] Name=org.kde.kdeconnect Exec=/usr/bin/kdeconnectd So that's a package bug and it should be reopened.
The upstream bug is still open as far as I can see.
(In reply to Christophe PEREZ from comment #16) > (In reply to Stephen Bosch from comment #15) > > Thanks, Christoph, I had done that and it works, but the package also needs > > to be fixed so that the correct path is written to > > daemon/org.kde.kdeconnect.service.in. > > Of course. > > https://develop.kde.org/docs/features/d-bus/dbus_autostart_services/ > tells : > > "Unlike .desktop files, though, the Exec line must contain the full path to > the application that is to be started." > FWIW, I don't see this in the dbus spec at https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-starting-services. It also doesn't explain why it works for some people and not others. > So Exec must be filled with full pathname to kdeconnectd > > $ cat /usr/share/dbus-1/services/org.kde.kdeconnect.service > [D-BUS Service] > Name=org.kde.kdeconnect > Exec=/usr/bin/kdeconnectd > > So that's a package bug and it should be reopened. No evidence has been given for it being a _packaging_ bug.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=422637fbf570af764c6856a1650368841314479b commit 422637fbf570af764c6856a1650368841314479b Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-05 09:03:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-05 09:03:29 +0000 kde-misc/kdeconnect: fix DBus service file Closes: https://bugs.gentoo.org/934785 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=489343 Signed-off-by: Sam James <sam@gentoo.org> .../files/kdeconnect-24.08.1-dbus-path.patch | 66 ++++++++++++ kde-misc/kdeconnect/kdeconnect-24.08.1-r1.ebuild | 111 +++++++++++++++++++++ 2 files changed, 177 insertions(+)
good