f31522130f
Build system (5 gaps hardened): - COOKBOOK_OFFLINE defaults to true (fork-mode) - normalize_patch handles diff -ruN format - New 'repo validate-patches' command (25/25 relibc patches) - 14 patched Qt/Wayland/display recipes added to protected list - relibc archive regenerated with current patch chain Boot fixes (fixable): - Full ISO EFI partition: 16 MiB → 1 MiB (matches mini, BIOS hardcoded 2 MiB offset) - D-Bus system bus: absolute /usr/bin/dbus-daemon path (was skipped) - redbear-sessiond: absolute /usr/bin/redbear-sessiond path (was skipped) - daemon framework: silenced spurious INIT_NOTIFY warnings for oneshot_async services (P0-daemon-silence-init-notify.patch) - udev-shim: demoted INIT_NOTIFY warning to INFO (expected for oneshot_async) - relibc: comprehensive named semaphores (sem_open/close/unlink) replacing upstream todo!() stubs - greeterd: Wayland socket timeout 15s → 30s (compositor DRM wait) - greeter-ui: built and linked (header guard unification, sem_compat stubs removed) - mc: un-ignored in both configs, fixed glib/libiconv/pcre2 transitive deps - greeter config: removed stale keymapd dependency from display/greeter services - prefix toolchain: relibc headers synced, _RELIBC_STDLIB_H guard unified Unfixable (diagnosed, upstream): - i2c-hidd: abort on no-I2C-hardware (QEMU) — process::exit → relibc abort - kded6/greeter-ui: page fault 0x8 — Qt library null deref - Thread panics fd != -1 — Rust std library on Redox - DHCP timeout / eth0 MAC — QEMU user-mode networking - hwrngd/thermald — no hardware RNG/thermal in VM - live preload allocation — BIOS memory fragmentation, continues on demand
183 lines
8.0 KiB
XML
183 lines
8.0 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
|
<refentry id='dbussend1'>
|
|
|
|
<!-- dbus\-send manual page.
|
|
Copyright (C) 2003 Red Hat, Inc. -->
|
|
|
|
<refmeta>
|
|
<refentrytitle>dbus-send</refentrytitle>
|
|
<manvolnum>1</manvolnum>
|
|
<refmiscinfo class="manual">User Commands</refmiscinfo>
|
|
<refmiscinfo class="source">D-Bus</refmiscinfo>
|
|
<refmiscinfo class="version">@DBUS_VERSION@</refmiscinfo>
|
|
</refmeta>
|
|
<refnamediv>
|
|
<refname>dbus-send</refname>
|
|
<refpurpose>Send a message to a message bus</refpurpose>
|
|
</refnamediv>
|
|
<!-- body begins here -->
|
|
<refsynopsisdiv id='synopsis'>
|
|
<cmdsynopsis>
|
|
<command>dbus-send</command>
|
|
<group choice='opt'><arg choice='plain'>--system </arg><arg choice='plain'>--session </arg><arg choice='plain'>--bus=<replaceable>ADDRESS</replaceable></arg><arg choice='plain'>--peer=<replaceable>ADDRESS</replaceable></arg></group>
|
|
<arg choice='opt'>--sender=<replaceable>NAME</replaceable></arg>
|
|
<arg choice='opt'>--dest=<replaceable>NAME</replaceable></arg>
|
|
<arg choice='opt'><arg choice='plain'>--print-reply </arg><arg choice='opt'><replaceable>=literal</replaceable></arg></arg>
|
|
<arg choice='opt'>--reply-timeout=<replaceable>MSEC</replaceable></arg>
|
|
<arg choice='opt'>--type=<replaceable>TYPE</replaceable></arg>
|
|
<arg choice='plain'><replaceable>OBJECT_PATH</replaceable></arg>
|
|
<arg choice='plain'><replaceable>INTERFACE.MEMBER</replaceable></arg>
|
|
<arg choice='opt' rep='repeat'><replaceable>CONTENTS</replaceable></arg>
|
|
<sbr/>
|
|
</cmdsynopsis>
|
|
</refsynopsisdiv>
|
|
|
|
|
|
<refsect1 id='description'><title>DESCRIPTION</title>
|
|
<para>The <command>dbus-send</command> command is used to send a message to a D-Bus message
|
|
bus. See <ulink url='https://www.freedesktop.org/wiki/Software/dbus/'>https://www.freedesktop.org/wiki/Software/dbus/</ulink> for more
|
|
information about the big picture.</para>
|
|
|
|
|
|
<para>There are two well-known message buses: the systemwide message bus
|
|
(installed on many systems as the "messagebus" service) and the
|
|
per-user-login-session message bus (started each time a user logs in).
|
|
The <option>--system</option> and <option>--session</option> options direct
|
|
<command>dbus-send</command> to send messages to the system or session buses respectively.
|
|
If neither is specified, <command>dbus-send</command> sends to the session bus.</para>
|
|
|
|
|
|
<para>Nearly all uses of <command>dbus-send</command> must provide the <option>--dest</option> argument
|
|
which is the name of a connection on the bus to send the message to. If
|
|
<option>--dest</option> is omitted, no destination is set.</para>
|
|
|
|
|
|
<para>The object path and the name of the message to send must always be
|
|
specified. Following arguments, if any, are the message contents
|
|
(message arguments). These are given as type-specified values and
|
|
may include containers (arrays, dicts, and variants) as described below.</para>
|
|
|
|
<literallayout remap='.nf'>
|
|
<contents> ::= <item> | <container> [ <item> | <container>...]
|
|
<item> ::= <type>:<value>
|
|
<container> ::= <array> | <dict> | <variant>
|
|
<array> ::= array:<type>:<value>[,<value>...]
|
|
<dict> ::= dict:<type>:<type>:<key>,<value>[,<key>,<value>...]
|
|
<variant> ::= variant:<type>:<value>
|
|
<type> ::= string | int16 | uint16 | int32 | uint32 | int64 | uint64 | double | byte | boolean | objpath
|
|
</literallayout> <!-- .fi -->
|
|
|
|
<para>D-Bus supports more types than these, but <command>dbus-send</command> currently
|
|
does not. Also, <command>dbus-send</command> does not permit empty containers
|
|
or nested containers (e.g. arrays of variants).</para>
|
|
|
|
|
|
<para>Here is an example invocation:</para>
|
|
<literallayout remap='.nf'>
|
|
|
|
dbus-send --dest=org.freedesktop.ExampleName \
|
|
/org/freedesktop/sample/object/name \
|
|
org.freedesktop.ExampleInterface.ExampleMethod \
|
|
int32:47 string:'hello world' double:65.32 \
|
|
array:string:"1st item","next item","last item" \
|
|
dict:string:int32:"one",1,"two",2,"three",3 \
|
|
variant:int32:-8 \
|
|
objpath:/org/freedesktop/sample/object/name
|
|
|
|
</literallayout> <!-- .fi -->
|
|
|
|
<para>Note that the interface is separated from a method or signal
|
|
name by a dot, though in the actual protocol the interface
|
|
and the interface member are separate fields.</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 id='options'><title>OPTIONS</title>
|
|
<para>The following options are supported:</para>
|
|
<variablelist remap='TP'>
|
|
<varlistentry>
|
|
<term><option>--dest=</option><replaceable>NAME</replaceable></term>
|
|
<listitem>
|
|
<para>Specify the name of the connection to receive the message.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--print-reply</option></term>
|
|
<listitem>
|
|
<para>Block for a reply to the message sent, and print any reply received
|
|
in a human-readable form. It also means the message type (<option>--type=</option>) is <emphasis remap='B'>method_call</emphasis>.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--print-reply=literal</option></term>
|
|
<listitem>
|
|
<para>Block for a reply to the message sent, and print the body of the
|
|
reply. If the reply is an object path or a string, it is printed
|
|
literally, with no punctuation, escape characters etc.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--reply-timeout=</option><replaceable>MSEC</replaceable></term>
|
|
<listitem>
|
|
<para>Wait for a reply for up to <emphasis remap='I'>MSEC</emphasis> milliseconds.
|
|
The default is implementation‐defined, typically 25 seconds.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--system</option></term>
|
|
<listitem>
|
|
<para>Send to the system message bus.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--session</option></term>
|
|
<listitem>
|
|
<para>Send to the session message bus. (This is the default.)</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--bus=</option><replaceable>ADDRESS</replaceable></term>
|
|
<listitem>
|
|
<para>Register on a message bus at <replaceable>ADDRESS</replaceable>, typically a <command>dbus-daemon</command>.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--peer=</option><replaceable>ADDRESS</replaceable></term>
|
|
<listitem>
|
|
<para>Send to a non-message-bus D-Bus server at <replaceable>ADDRESS</replaceable>. In this case <command>dbus-send</command> will not call the <literal>Hello</literal> method.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--sender=</option><replaceable>NAME</replaceable></term>
|
|
<listitem>
|
|
<para>Request ownership of name <replaceable>NAME</replaceable> before sending the message. The name will be released when <command>dbus-send</command> exits.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><option>--type=</option><replaceable>TYPE</replaceable></term>
|
|
<listitem>
|
|
<para>Specify <emphasis remap='B'>method_call</emphasis> or <emphasis remap='B'>signal</emphasis> (defaults to "<emphasis remap='B'>signal</emphasis>").</para>
|
|
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
|
|
<refsect1 id='exit-status'><title>EXIT STATUS</title>
|
|
<para>Exit status 0 indicates success. A non-zero exit status indicates any failure, including invalid parameters, failure to connect to the --bus or --peer, failure to obtain the --sender name, a timeout while waiting for a reply to a method call, or receiving an error as the reply to a method call.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 id='author'><title>AUTHOR</title>
|
|
<para>dbus-send was written by Philip Blundell.</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 id='bugs'><title>BUGS</title>
|
|
<para>Please send bug reports to the D-Bus mailing list or bug tracker,
|
|
see <ulink url='https://www.freedesktop.org/wiki/Software/dbus/'>https://www.freedesktop.org/wiki/Software/dbus/</ulink></para>
|
|
</refsect1>
|
|
</refentry>
|