7

These don't work: sudo update-rc.d kdeconnectd disable sudo systemctl disable kdeconnectd.service

There is no script for it in /etc/init.d/ and the /usr/share/dbus-1/services/org.kde.kdeconnect.service file only has Exec=/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd set

sysv-rc-conf, rcconf and bum don't list kdeconnect.

/etc/xdg/autostart/kdeconnectd.desktop looks like this:

[Desktop Entry] Type=Application Exec=/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd X-KDE-StartupNotify=false X-KDE-autostart-phase=0 X-GNOME-Autostart-enabled=false OnlyShowIn=KDE;GNOME;Unity;XFCE; NoDisplay=true 

(Kdeconnectd has port 1716 open all the time when running.) It's not just starting automatically when booting but also a while after ending the process without me opening it.

I'm running Debian 9/KDE.

Update: Debian issue now is here

3
  • 2
    I described it for all of us here Commented Mar 29, 2019 at 17:36
  • Setting X-GNOME-Autostart-enabled=false worked for me. I also have X-KDE-autostart-phase=1 instead of 0. Beside that the settings are identical (excluding the Name list at the end of file). I am running GNOME though, so at least there it seems to work as intended KDE Autostart Phases: github.com/KDE/kdelibs/blob/… From that perhaps phase > 2 could help. From what it say it looks Hidden = true should disable. Can not see you have that in the desktop file. Commented Mar 3, 2021 at 14:50
  • 1
    Modifying X-GNOME-Autostart-enabled=true parameter won't help in KDE. You can rename /etc/xdg/autostart/org.kde.kdeconnect.daemon.desktop launcher instead. Check my answer here. Commented Jan 28, 2022 at 13:05

4 Answers 4

1

For those who don't need to use KDE Connect even occasionally: you can just uninstall it. At least on my Kubuntu 22.04 setup, kdeconnect is an optional package

1

I have had the same problem, I have solved it by deleting two files: "/usr/share/dbus-1/services/org.kde.kdeconnect.service" and "/etc/xdg/autostart/org.kde.kdeconnect.daemon.desktop". I don't know if it's the proper way to fix it, but it worked for me.

1
0
  1. Check where kdeconnectd is located by running which kdeconnectd
  2. Run sudo chmod -x /usr/bin/kdeconnectd && pkill kdeconnectd to prevent it from autostarting and after every time you're running KDE Connect. The path could also be different and should be visible in 1.. For example, in Debian12 it's /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd. One could also move the file.
  3. One can set up a shortcut in the KDE Menu Editor where in the program line I entered pkexec and in the Command-line arguments I wrote sh -c 'chmod -x /usr/bin/kdeconnectd && pkill kdeconnectd' (with the '). Also a shortcut with pkexec sh -c 'chmod -x /usr/bin/kdeconnectd to run before launching kdeconnect-app (if you know how this can be run from the same command without running KDEConnect as root user, comment). If you set up these 3 shortcuts, you don't need to enter any commands to start or quit kdeconnect.
  4. Check if it's running with sudo lsof -i.
  5. Run sudo mv /usr/share/dbus-1/services/org.kde.kdeconnect.service ~/Desktop/org.kde.kdeconnect.serviceand sudo mv /etc/xdg/autostart/org.kde.kdeconnect.daemon.desktop.dpkg-dist ~/Desktop/org.kde.kdeconnect.daemon.desktop.dpkg-dist - I don't know if this persistently disables the autostart already and isn't changed by for example package upgrades. I also don't know why the file ends with .dpkg-dist and it could be named differently on your computer. Here the files are moved instead of deleted just in case you'd like to have them again at a later time.
  6. Run sudo chmod +x /usr/bin/kdeconnectd whenever you're running KDE Connect. It has to be run again after updating the package.
  7. Support requests to make autostart of KDEConnect easily configurable. Every thing that autostarts should be easily visible and disableable. I will try to find a request for this and link it here.
-2

I was facing the same issue and after being at a loss for several minutes as to where was the setting to disable kde connect from autostarting I finally found it.

I had noticed that after unlocking the graphical component and going to the application bar and clicking the button to add a graphical component kde connect had a 1 indicating one such component was enabled. Though I had no idea how to disable it as clicking on its icon brung up the option to remove the miniature box instead.

So here's how I did it: right click the miniature box and open its settings. In the miniature box settings window scroll down to the additional component section until you reach kde connect in the list. Untick the checkbox to disable it, and apply the new settings.

Hope this helps.

2
  • Where do I find the "miniature box" to click for opening the settings? Commented Jun 27, 2020 at 16:56
  • 1
    I guess you mean the "system tray". It disables the component, but it is in fact still running. Commented Jul 10, 2020 at 19:46

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.