Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-26 00:19:43 +00:00
parent 00aae9d884
commit 114611fd19
16 changed files with 95 additions and 28 deletions

34
tldr/linux/gdbus Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`