There is a somewhat working Flatpak build, but there are a number of issues.
Flatpak was likely not designed with complex, multi-process things like KDE Connect in mind, so this can be challenging.
- The indicator does not seem to show up. Do we need to whitelist some DBus path for this? There is some discussion about a StatusNotifier portal (https://github.com/flatpak/xdg-desktop-portal/issues/266), but it seems stuck.
- Should we launch kdeconnect-app instead of kdeconnect-indicator by default?
- receiving files doesn't work. I guess we need to whitelist the downloads folder?
- Sharing via Purpose doesn't work. It can't find the QML plugin to get the devices list. What we can do is use KApplicationTrader to look for org.kde.kdeconnect.telhandler, check whether that's provided by flatpak and use ApplicationLauncherJob to run that. Advantage of that is that it will magically get the file into the sandbox. It will give the handler device selection instead of the purpose device selection, but better then nothing.
- Media controls don't seem to work
- Run command doesn't work and I don't see how that could work since running arbitrary commands defies the sandboxing. Should we just hide it?