Make runcommand great again
Open, Needs TriagePublic

nicolasfella created this task.EditedMar 23 2018, 5:59 PM
  • Make it more discoverable
  • Integrate with KNS/Discover (Wontfix)
  • sudo detection
  • Sliders and stuff
apol added a subscriber: apol.EditedMar 25 2018, 9:34 AM

We introduced a menu in the kcm to easily add some commands. We are pending a patch that easily allows us to see the kcm when we are on the phone.

Also we decided against KNS because the resources are potentially dangerous and our users may install viruses like this.

albertvaka moved this task from Ideas to In progress on the KDE Connect board.Mar 25 2018, 11:40 AM
albertvaka assigned this task to apol.

What do you think about introducing hooks that commands could be connected to? E.g. run foo on device connected/disconnected. Or connect commands to DBus signals.

apol added a comment.Apr 23 2018, 12:14 PM
  • Make it more discoverable
  • Integrate with KNS/Discover

decided against this one.

  • sudo detection

I wouldn't do that

  • Sliders and stuff

Seems out of scope for this plugin to me

apol added a comment.Apr 23 2018, 12:44 PM

What do you think about introducing hooks that commands could be connected to? E.g. run foo on device connected/disconnected. Or connect commands to DBus signals.

I'd say we can have such separate plugin, along the line of the un/lock screen. It's not something that requires interaction with other devices anyway, right?

In T8281#139370, @apol wrote:

What do you think about introducing hooks that commands could be connected to? E.g. run foo on device connected/disconnected. Or connect commands to DBus signals.

I'd say we can have such separate plugin, along the line of the un/lock screen. It's not something that requires interaction with other devices anyway, right?

You're right, it's kinda out of scope for KDE Connect, isn't it?

In T8281#139368, @apol wrote:
  • Sliders and stuff

Seems out of scope for this plugin to me

Doesn't have to be a fancy slider, but we could do a parameter text field so you can launch the same command with varying parameters, e.g. set brightness to x

Another thing that should be done is making removing commands more obvious, e.g by long-pressing on the phones command list

alex-l added a subscriber: alex-l.May 15 2018, 9:56 AM

Hi,

Also we decided against KNS because the resources are potentially dangerous and our users may install viruses like this.

with Dolphin you can already install Service Menus that could have malware (one line code in Exec= field), isn't this the same? What would be different in uploading to KDE Store a .desktop file with Exec=, Name= etc to define a custom command for KDE Connect? Sorry if this is a stupid question.

Greetings,

Thank you to all the contributors here for the sweet project : )

Run command with a parameterized text field would seem to work well with beets media management. For example,

beet play 1964

can pass all and any such tagged tracks into an mpris2 compatible player, which is open to the Multimedia Control plugin. Et voilà-- all of your music is available entirely via a remote. Some further examples

beet play body count
beet play backstreet boys
beet play -a black sabbath

etc. Good luck with the work; slick functionality like this is appreciated.