Communicating via dbus #613
-
Hi, First, awesome work on valent. I use awesomewm + mostly gtk programs so it's nice to have a kdeconnect client that better fits in with the tools I already use. Is it possible to directly launch the messaging window from the command line, perhaps with dbus? When receiving an sms notification I would like to be able to click the notification and launch the messaging window. I'm trying to get a better grasp on dbus, the spec/syntax overwhelms me a bit. Any pointers you may have would be very appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Basically devices are exported using the standard Object Manager interface, and each device has it's own object path and a The easiest way to use the interface I guess is using something that can consume remote GAction groups ( The actions themselves aren't documented, since they're part of the plugin rather the API. The |
Beta Was this translation helpful? Give feedback.
-
Much appreciate the detailed explanation, and I was unaware of D-Spy, that helps a lot :) I am running awesomewm which is configured with lua, so I probably could use
I am struggling to figure out the syntax for the method parameters. Running the above command returns the
I'm just lost on the proper parameter syntax. You already pretty much spelled it out, but any ideas here would be helpful. Thanks for your time! |
Beta Was this translation helpful? Give feedback.
-
Uhg, this entire time I overlooked something obvious. With
|
Beta Was this translation helpful? Give feedback.
Basically devices are exported using the standard Object Manager interface, and each device has it's own object path and a
org.gtk.Actions
interface for what it supports:The easiest way to use the interface I guess is using something that can consume remote GAction groups (
org.gtk.Actions
), like pygobject or gjs or something. Otherwise you'll want to get the ID for your device and make a call toca.andyholmes.Valent
at the object path/ca/andyholmes/Valent/Device/<device-id>
, interfaceorg.gtk.Actions
, and methodActivate()
with parameters('sms.messaging', [], {})
. Depending on what tools you have installed you can check the e.g.gdbus --help
for applying those.The actions themselves …