Skip to content

Communicating via dbus #613

Closed Answered by andyholmes
vredesbyyrd asked this question in Help
Jan 12, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

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 to ca.andyholmes.Valent at the object path /ca/andyholmes/Valent/Device/<device-id>, interface org.gtk.Actions, and method Activate() 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 …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by vredesbyyrd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@andyholmes
Comment options

@vredesbyyrd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants