Runner for executing commands on remote device
ClosedPublic

Authored by nicolasfella on Aug 4 2018, 2:46 PM.

Details

Summary

Add a runner that allows executing commands on a connected device. It enables a more keyboard-centric workflow than running the commands from the plasmoid.

Test Plan

Connect desktop device. Add some commands there. restart krunner, open it, start typing command or device name. Select entry to execute command. Check for success.

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.
nicolasfella created this revision.Aug 4 2018, 2:46 PM
Restricted Application added a project: KDE Connect. · View Herald TranscriptAug 4 2018, 2:46 PM
Restricted Application added a subscriber: kdeconnect. · View Herald Transcript
nicolasfella requested review of this revision.Aug 4 2018, 2:46 PM
ngraham added a subscriber: ngraham.Aug 4 2018, 4:39 PM
apol requested changes to this revision.Aug 4 2018, 5:55 PM
apol added a subscriber: apol.
apol added inline comments.
CMakeLists.txt
103

Maybe it would make sense to have a plasma-integration directory with runners and plasmoid?

runners/remotecommands/remotecommandsrunner.cpp
51

const &,
also this is a blocking dbus call. It would make sense to use the async API.

66

const, and below.

This revision now requires changes to proceed.Aug 4 2018, 5:55 PM
davidedmundson added inline comments.Aug 4 2018, 5:59 PM
runners/remotecommands/remotecommandsrunner.cpp
51

you're in your own thread here. Being async doesn't really gain you too much.

nicolasfella marked an inline comment as done.
  • const
nicolasfella added inline comments.Aug 15 2018, 6:38 PM
runners/remotecommands/remotecommandsrunner.cpp
51

If you really want it async I'll do it, it's your call

apol accepted this revision.Feb 8 2019, 10:44 PM
apol added inline comments.
runners/remotecommands/remotecommandsrunner.cpp
51

Are all KRunner plugins in a separate thread?

This revision is now accepted and ready to land.Feb 8 2019, 10:44 PM
This revision was automatically updated to reflect the committed changes.