Disable kdeconnectd

I want to disable kdeconnectd which is opening a local port:

sudo ss -tunlp

udp UNCONN 0 0 *:1716 : users:((“kdeconnectd”,pid=2032,fd=26))
tcp LISTEN 0 50 *:1716 : users:((“kdeconnectd”,pid=2032,fd=28))

I don’t use KDE connect and uninstalling it is not possible because it’s a core package of desktop so I want to disable it in such a way where it won’t get enabled again upon package upgrade.

System:

system

sudo chmod -x /usr/bin/kdeconnectd
sudo chattr +i /usr/bin/kdeconnectd

Should do it.

I really appreciate your solution, however I have some feeling that this method to disable a daemon cannot be good.

For instance upgrading the kdeconnect at some later point might fail or end up incomplete due to immutable attribute.

I see there is a bug report about this that is also confirmed:
https://bugs.kde.org/show_bug.cgi?id=417615

While “confirmed” is appreciated what’s worse is that kdeconnectd is a generated service, meaning it can’t be disabled with systemctl disable

Now the question is, why is even software such as this one essential part of the Desktop?

The command:

sudo apt install kde-plasma-desktop

Installs “minimalistic” KDE plasma desktop, but sadly that’s not true because it includes non essential software one that also cannot be disabled (it’s forced upon users).

A kdeconnect is not the only one non essential, there are other software that should really be optional because system ain’t gonna crash without them.

Since it can’t be disabled any web site can access it and possibly exploit the system because the service is listening and can’t be disabled:

It’s dbus-activated by the systray icon. So if you disable the icon, I think it won’t autostart then.

1 Like

Sadly I don’t know how to do this, the icon is there but no option to disable, I assume some hackery needs to be done, I’ll research it, thanks.

For now I’ve set firewall rules to block the port so it’s not huge issue, just annoying.