How to get a reliable on/off toggle for kdeconnect?

https://slrpnk.net/post/9370931

How to get a reliable on/off toggle for kdeconnect? - SLRPNK

Kdeconnect is very cool but also pretty sensitive. There are many reasons why people would like to turn it off. I already tried placing an empty autostart file with the same name in ~/.local/share/applications/ (same with discovernotifier) and this didnt do anything. Uninstalling is not an option, as on Fedora Atomic desktops users cant reinstall apps that were uninstalled in the image building process.

Petition the KDE maintainers to make it work like all the other KDE Background Services, rather than the ridiculous current approach of launching it at session start (whether the user wants it or not) and allowing systemd to automatically re-launch it (also against the user’s wishes).

Can you explain how systemd relaunches it?

I want to test converting some noncritical but annoying services to systemd services. Then I will experiment with changing all to systemd services in a VM.

But if there is some strange systemd action in there that relaunches things, this needs to be adapted too.

I suspect @mox is confused somehow - as far as I know, KDEConnect does not provide any system service interface so systemd can handle it. It all happens in the KDE user session.

I know this because I don't use systemd and have KDEConnect working and autolaunching here.

I suspect @mox is confused somehow

Then you are mistaken.

Read the bug report, and look at /usr/share/dbus-1/services/org.kde.kdeconnect.service .

Well now I don’t know who to believe!
@mox
That's not a systemd service definition, it's a dbus one
@m4

/usr/share/dbus-1/services/org.kde.kdeconnect.service

It’s both. They can work together to accomplish the the launch.

dbus.freedesktop.org/doc/dbus-daemon.1.html#sessi…

There are cases where systemd doesn’t take part, but that’s irrelevant to the point I made.

(I’m not confused, but I’m also not interested in nitpicking special cases or one-upmanship. Good day.)

dbus-daemon

GitHub - boredsquirrel/kde-systemd-services: Experimental replacement systemd services for the current xdg/autostart entries

Experimental replacement systemd services for the current xdg/autostart entries - boredsquirrel/kde-systemd-services

GitHub

This will for sure come up when making something compatible with only systemd.

Even though this should also be very possible to implement in sysvinit etc.

It uses a udev service definition to make it re-launch when that service is called.