How to disable KDE Connect?

KDE Connect is a great piece of software, but not everyone will want to have a server open, as this increases the attack surface, and at least in the past was a vector for a DOS attack

I only found really weird ways how to disable it, like making the binary nonexecutable. But I would like a good way, it doesnt seem to have a systemd service.

The use case is for the security-hardened OS secureblue, based on Fedora Kinoite in that case.

Apart from blocking it behind a firewall, is there a way to actually disable it normally, without needint to uninstall it, to allow easy on/off switching?

Since kdeconnect is dbus activated it is relatively hard to make sure it stays stopped so the brute
force approach is to uninstall the kdeconnect package from your system and then run
kquitapp5 kdeconnectd
Just install the package again once you’re back in a trusted network.

There is discussion in Bug 417615 …

On this system –

Operating System: openSUSE Leap 15.5
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.14.21-150500.55.36-default (64-bit)

And, looking at the KDE Bug Report, I’m a bit puzzled as what other distros are doing with respect to package dependencies –

 # LANG=C zypper remove --clean-deps kdeconnect-kde
Reading installed packages...
Resolving package dependencies...

The following 7 packages are going to be REMOVED:
  kdeconnect-kde kdeconnect-kde-lang kdeconnect-kde-zsh-completion kpeoplevcard libKF5PulseAudioQt3 libfakekey0 sshfs

7 packages to remove.
After the operation, 6.0 MiB will be freed.
Continue? [y/n/v/...? shows all options] (y): n
 > LANG=C zypper info --recommends --requires --suggests --supplements kdeconnect-kde
Loading repository data...
Reading installed packages...

Information for package kdeconnect-kde:
Repository     : Haupt-Repository
Name           : kdeconnect-kde
Version        : 22.12.3-bp155.1.6
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 4.1 MiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : kdeconnect-kde-22.12.3-bp155.1.6.src
Upstream URL   :
Summary        : Integration of Android with Linux desktops
Description    : 
    A package for integration of Android with Linux desktops.

    Current feature list:
    - Clipboard share: copy from or to your desktop
    - Notifications sync (4.3+): Read your Android notifications
    - Multimedia remote control: Use your phone as a remote control
    - WiFi connection: no USB wire or Bluetooth needed
    - RSA Encryption: your information is safe

    Please note you will need to install KDE Connect on Android for this app to work: or
Requires       : [78]
    qt5qmlimport(QtQuick.Layouts.1) >= 1
    qt5qmlimport(org.kde.plasma.core.2) >= 0
    qt5qmlimport(QtQuick.2) >= 2
    qt5qmlimport(QtQuick.2) >= 1
    qt5qmlimport(org.kde.plasma.plasmoid.2) >= 0
    qt5qmlimport(QtQuick.2) >= 4
    qt5qmlimport(org.kde.plasma.extras.2) >= 0
    qt5qmlimport(org.kde.kquickcontrolsaddons.2) >= 0
    qt5qmlimport(QtQuick.Controls.2) >= 5
    qt5qmlimport(org.kde.plasma.components.3) >= 0
    qt5qmlimport(org.kde.kirigami.2) >= 5
    qt5qmlimport(org.kde.plasma.components.2) >= 0
    qt5qmlimport(QtQuick.Controls.2) >= 2
    qt5qmlimport(org.kde.kirigami.2) >= 4
    qt5qmlimport(QtQuick.Dialogs.1) >= 0
    qt5qmlimport(QtQuick.Controls.2) >= 4
    qt5qmlimport(QtQml.2) >= 2
    qt5qmlimport(Qt.labs.platform.1) >= 1
    qt5qmlimport(org.kde.kdeconnect.1) >= 0
    qt5qmlimport(QtQuick.Layouts.1) >= 9
    sshfs >= 3.7.2
Recommends     : kpeoplevcard
Suggests       : ---
Supplements    : ---

 > LANG=C zypper info --recommends --requires --suggests --supplements kate
Loading repository data...
Reading installed packages...

Information for package kate:
Repository     : Haupt-Repository
Name           : kate
Version        : 22.12.3-bp155.1.7
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 4.4 MiB
Installed      : Yes
Status         : up-to-date
Source package : kate-22.12.3-bp155.1.7.src
Upstream URL   :
Summary        : Advanced Text Editor
Description    : 
    Kate is an advanced text editor by KDE.
Requires       : [47]
    kate-plugins = 22.12.3
Recommends     : ---
Suggests       : ---
Supplements    : ---


In other words, I can’t really see where there’s a dependency between KDE Connect and Kate and, I can’t really see any reason why KDE Connect cannot be simply removed if, it’s never going to be needed – despite it’s dependencies to kpeoplevcard, libKF5PulseAudioQt3, libfakekey0 and sshfs (which can all be re-installed if needed) …

KDE connect should have an optional installation.

This sounds like a distribution issue, I promise that KDE Plasma doesn’t depend on KDE Connect in any way. I couldn’t really figure out what you’re asking specifically, it sounds like you need to file a bug against Fedora Kionite?


Yeah, with an immutable distro such as Kinoite, it’s more challenging to uninstall software that’s bundled with the base OS compared to a distro where everything is read-write.

This is a distro issue though, not an issue with KDE Connect.

1 Like

You should be able to disable kdeconnectd by

touch ~/.config/autostart/org.kde.kdeconnect.daemon.desktop
cat /usr/share/dbus-1/services/org.kde.kdeconnect.service | sed 's/lib\/kdeconnectd/bin\/false/' > ~/.local/share/dbus-1/services/org.kde.kdeconnect.service

It works for most things XDG/systemd related. They look for files in $HOME -> /etc -> /usr/local -> /usr order.

BTW, I added a global switch to kdeconnectd, but it’s probably too hacky to be merged:

1 Like

BTW, why is kdeconnectd both autostarted and dbus-activated? I guess either should suffice?

And perhaps instead of either way above, it’s better to manage kdeconnectd via a kded plugin, so the user can simply disable it in systemsettings - session - background service.

1 Like

Thanks for your work and ideas!

Having the ability to opt-in to both KDE Connect and CUPS is essential for secure systems. And a normal user-facing way to disable or enable kdeconnect would be very much needed!

@jinliu I will try your way, thank you!

I did: rpm -qa | grep kde | grep connect | sort
to find the list of related packages.

When I went to use dnf to erase them, other seemingly valuable dependencies were also suggested as candidates for removal. So, instead, I did:

dnf -y remove kde-connect kde-connectd kde-connect-libs kde-connect-nautilus --noautoremove

And it worked like a charm. Rebooted, then did ‘dnf -y update’, and it was clean.

Thank you.

There’s a bug here:

1 Like

yes this is an option. But as said (I think) is is not a good one. On rpm-ostree systems that would mean opt-in = layering the packages, or opt-out = changing the root system. This would make things like an Attestation app checking the root filesystem integrity, impossible.

A normal sane way to disable it through systemd, like CUPS, is needed