use libkeepalive to wakeup daemon
ClosedPublic

Authored by piggz on Sep 10 2018, 7:26 PM.

Details

Summary

Main change is to use libkeepalive to wake up the system to ensure connections stay alive

Other minor changes are:
-Log daemon messages for debugging purposes
-Add way to forece refresh of device list
-Minor spec improvements

The keepalive changes certainly seem to help, not sure if it completely solves the problems
The logging changes are temporary, and I could use them locally, but they only affect sailfish users
Im not sure if the refresh method is correct, but seems to force the daemon to check for devices

Diff Detail

Repository
R224 KDE Connect
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
piggz created this revision.Sep 10 2018, 7:26 PM
Restricted Application added a project: KDE Connect. · View Herald TranscriptSep 10 2018, 7:26 PM
Restricted Application added a subscriber: kdeconnect. · View Herald Transcript
piggz requested review of this revision.Sep 10 2018, 7:26 PM
piggz edited the summary of this revision. (Show Details)Sep 10 2018, 7:31 PM

As usual I can't really comment on the SFOS things, but the way the refresh works makes sense. AFAIK we do the same. The keepalive sounds interesting, I would like to give it a more thorough test.

albertvaka accepted this revision.Sep 22 2018, 12:09 PM

Looks good to me, but I can't test the sailfish part.

I think you should take the role of maintainer for the SFOS parts of kdeconnect :) So, I would say: either merge patches to the SF part directly without review, or add as a reviewer someone more knowledgeable about SFOS than us. I feel like I'm blocking progress on the SF port and can't add much.

core/backends/lan/lanlinkprovider.cpp
356

Don't push those uncomments, they will print a lot of spam.

This revision is now accepted and ready to land.Sep 22 2018, 12:09 PM
piggz updated this revision to Diff 44079.Oct 22 2018, 5:12 PM
  • Dont use clipboard plugin on sailfish as it uses wayland
This revision was automatically updated to reflect the committed changes.