1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-29 00:53:34 +02:00

gdbus: add page (#17668)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
rafikhouzam 2025-08-25 09:41:23 -04:00 committed by GitHub
parent 18d2f44fad
commit 35c13e70b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

29
pages/linux/gdbus.md Normal file
View file

@ -0,0 +1,29 @@
# gdbus
> Interact with D-Bus objects.
> Part of GLib.
> More information: <https://manned.org/gdbus>.
- List all names on the session bus:
`gdbus list-names --session`
- List all names on the system bus:
`gdbus list-names --system`
- Introspect an object to see its interfaces and methods:
`gdbus introspect --session --dest {{destination_bus_name}} --object-path /{{path/to/object}}`
- Call a method on an object with arguments:
`gdbus call --session --dest {{destination_bus_name}} --object-path /{{path/to/object}} --method {{interface.method_name}} {{argument1 argument2 ...}}`
- Emit a signal from an object with arguments:
`gdbus emit --session --object-path /{{path/to/object}} --signal {{interface.signal_name}} {{argument1 argument2 ...}}`
- Monitor all messages on the session bus:
`gdbus monitor --session`