Bug 377850 - Add intents for command plugin
Summary: Add intents for command plugin
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 18:32 UTC by kde
Modified: 2019-11-09 13:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2017-03-20 18:32:13 UTC
Hi,

It would be useful to be able to call the command plugin (or any plugin, the media player would benefit from that as well) from an external source (e.g. Tasker) with intents, to execute commands on events from Tasker. Example application: run defined command "systemctl suspend" when the phone disconnects from wifi.
Comment 1 Aleix Pol 2017-07-13 23:49:12 UTC
Seems out of scope from KDE Connect.
Note that it's easy to listen to KDE Connect dbus interfaces and build on top of the information offered by the daemon.

An easy way to trigger intents is by sharing URLs.
Comment 2 Mario 2019-11-09 12:33:05 UTC
Sorry for reopening this old issue. I got here by searching for how to trigger a Run Command action from an intent on Android. From my reading, the feature request is related to the Android app, not to the desktop. The proposed solution (using dbus) applies to the desktop application, not to the Android app. I thought that reopening this issue would be better than creating a new issue.

Adding support to the Android app to trigger plugin actions by means of intents would greatly increase the utility of KDE Connect, since actions on the desktop could then be triggered by other apps (for example, as mentioned in the original issue, Tasker).
Comment 3 Mario 2019-11-09 13:06:09 UTC
Sorry again. After some Googling with different keywords I found this: https://nicolasfella.wordpress.com/2018/07/31/kde-connect-new-stuff-ii/. I'm leaving the link here for future Googlers.