From 35c13e70b87a29cfc4eb5a09ba1edcfebe9181cd Mon Sep 17 00:00:00 2001 From: rafikhouzam Date: Mon, 25 Aug 2025 09:41:23 -0400 Subject: [PATCH] gdbus: add page (#17668) Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --- pages/linux/gdbus.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/linux/gdbus.md diff --git a/pages/linux/gdbus.md b/pages/linux/gdbus.md new file mode 100644 index 0000000000..1eea9efa4e --- /dev/null +++ b/pages/linux/gdbus.md @@ -0,0 +1,29 @@ +# gdbus + +> Interact with D-Bus objects. +> Part of GLib. +> More information: . + +- 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`