{
    "mode": "man",
    "parameter": "dbus-send",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dbus-send/1/json",
    "generated": "2026-06-03T04:25:59Z",
    "synopsis": "dbus-send [--system | --session | --bus=ADDRESS | --peer=ADDRESS] [--dest=NAME]\n[--print-reply [=literal]] [--reply-timeout=MSEC] [--type=TYPE] OBJECTPATH\nINTERFACE.MEMBER [CONTENTS...]",
    "sections": {
        "NAME": {
            "content": "dbus-send - Send a message to a message bus\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dbus-send [--system | --session | --bus=ADDRESS | --peer=ADDRESS] [--dest=NAME]\n[--print-reply [=literal]] [--reply-timeout=MSEC] [--type=TYPE] OBJECTPATH\nINTERFACE.MEMBER [CONTENTS...]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The dbus-send command is used to send a message to a D-Bus message bus. See\nhttp://www.freedesktop.org/software/dbus/ for more information about the big picture.\n\nThere are two well-known message buses: the systemwide message bus (installed on many systems\nas the \"messagebus\" service) and the per-user-login-session message bus (started each time a\nuser logs in). The --system and --session options direct dbus-send to send messages to the\nsystem or session buses respectively. If neither is specified, dbus-send sends to the session\nbus.\n\nNearly all uses of dbus-send must provide the --dest argument which is the name of a\nconnection on the bus to send the message to. If --dest is omitted, no destination is set.\n\nThe object path and the name of the message to send must always be specified. Following\narguments, if any, are the message contents (message arguments). These are given as\ntype-specified values and may include containers (arrays, dicts, and variants) as described\nbelow.\n\n<contents>   ::= <item> | <container> [ <item> | <container>...]\n<item>       ::= <type>:<value>\n<container>  ::= <array> | <dict> | <variant>\n<array>      ::= array:<type>:<value>[,<value>...]\n<dict>       ::= dict:<type>:<type>:<key>,<value>[,<key>,<value>...]\n<variant>    ::= variant:<type>:<value>\n<type>       ::= string | int16 | uint16 | int32 | uint32 | int64 | uint64 | double | byte | boolean | objpath\n\nD-Bus supports more types than these, but dbus-send currently does not. Also, dbus-send does\nnot permit empty containers or nested containers (e.g. arrays of variants).\n\nHere is an example invocation:\n\n\ndbus-send --dest=org.freedesktop.ExampleName               \\\n/org/freedesktop/sample/object/name              \\\norg.freedesktop.ExampleInterface.ExampleMethod   \\\nint32:47 string:'hello world' double:65.32       \\\narray:string:\"1st item\",\"next item\",\"last item\"  \\\ndict:string:int32:\"one\",1,\"two\",2,\"three\",3      \\\nvariant:int32:-8                                 \\\nobjpath:/org/freedesktop/sample/object/name\n\n\nNote that the interface is separated from a method or signal name by a dot, though in the\nactual protocol the interface and the interface member are separate fields.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are supported:\n\n--dest=NAME\nSpecify the name of the connection to receive the message.\n",
            "subsections": [
                {
                    "name": "--print-reply",
                    "content": "Block for a reply to the message sent, and print any reply received in a human-readable\nform. It also means the message type (--type=) is methodcall.\n",
                    "long": "--print-reply"
                },
                {
                    "name": "--print-reply=literal",
                    "content": "Block for a reply to the message sent, and print the body of the reply. If the reply is\nan object path or a string, it is printed literally, with no punctuation, escape\ncharacters etc.\n\n--reply-timeout=MSEC\nWait for a reply for up to MSEC milliseconds. The default is implementation-defined,\ntypically 25 seconds.\n",
                    "long": "--print-reply",
                    "arg": "literal"
                },
                {
                    "name": "--system",
                    "content": "Send to the system message bus.\n",
                    "long": "--system"
                },
                {
                    "name": "--session",
                    "content": "Send to the session message bus. (This is the default.)\n\n--bus=ADDRESS\nRegister on a message bus at ADDRESS, typically a dbus-daemon.\n\n--peer=ADDRESS\nSend to a non-message-bus D-Bus server at ADDRESS. In this case dbus-send will not call\nthe Hello method.\n\n--type=TYPE\nSpecify methodcall or signal (defaults to \"signal\").\n",
                    "long": "--session"
                }
            ]
        },
        "AUTHOR": {
            "content": "dbus-send was written by Philip Blundell.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Please send bug reports to the D-Bus mailing list or bug tracker, see",
            "subsections": [
                {
                    "name": "http://www.freedesktop.org/software/dbus/",
                    "content": "D-Bus 1.12.20                                                                           DBUS-SEND(1)"
                }
            ]
        }
    },
    "summary": "dbus-send - Send a message to a message bus",
    "flags": [
        {
            "flag": "",
            "long": "--print-reply",
            "arg": null,
            "description": "Block for a reply to the message sent, and print any reply received in a human-readable form. It also means the message type (--type=) is methodcall."
        },
        {
            "flag": "",
            "long": "--print-reply",
            "arg": "literal",
            "description": "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. --reply-timeout=MSEC Wait for a reply for up to MSEC milliseconds. The default is implementation-defined, typically 25 seconds."
        },
        {
            "flag": "",
            "long": "--system",
            "arg": null,
            "description": "Send to the system message bus."
        },
        {
            "flag": "",
            "long": "--session",
            "arg": null,
            "description": "Send to the session message bus. (This is the default.) --bus=ADDRESS Register on a message bus at ADDRESS, typically a dbus-daemon. --peer=ADDRESS Send to a non-message-bus D-Bus server at ADDRESS. In this case dbus-send will not call the Hello method. --type=TYPE Specify methodcall or signal (defaults to \"signal\")."
        }
    ],
    "examples": [],
    "see_also": []
}