diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/dbus-send.1 | 13 | ||||
-rw-r--r-- | tools/dbus-send.c | 2 |
2 files changed, 7 insertions, 8 deletions
diff --git a/tools/dbus-send.1 b/tools/dbus-send.1 index 725507c0..0b846045 100644 --- a/tools/dbus-send.1 +++ b/tools/dbus-send.1 @@ -8,7 +8,7 @@ dbus-send \- Send a message to a message bus .SH SYNOPSIS .PP .B dbus-send -[\-\-system | \-\-session] [\-\-dest=SERVICE] [\-\-print-reply] +[\-\-system | \-\-session] [\-\-dest=NAME] [\-\-print-reply] [\-\-type=TYPE] <destination object path> <message name> [contents ...] .SH DESCRIPTION @@ -27,9 +27,8 @@ specified, \fIdbus-send\fP sends to the session bus. .PP Nearly all uses of \fIdbus-send\fP must provide the \-\-dest argument -which is the name of a service on the bus to send the message to. If -\-\-dest is omitted, a default service name of -"org.freedesktop.Broadcast" is used. +which is the name of a connection on the bus to send the message to. If +\-\-dest is omitted, no destination is set. .PP The object path and the name of the message to send must always be @@ -43,7 +42,7 @@ these, but \fIdbus-send\fP currently does not.) Here is an example invocation: .nf - dbus-send \-\-dest='org.freedesktop.ExampleService' \\ + dbus-send \-\-dest='org.freedesktop.ExampleName \\ /org/freedesktop/sample/object/name \\ org.freedesktop.ExampleInterface.ExampleMethod \\ int32:47 string:'hello world' double:65.32 @@ -57,8 +56,8 @@ and the interface member are separate fields. .SH OPTIONS The following options are supported: .TP -.I "--dest=SERVICE" -Specify the service to receive the message. +.I "--dest=NAME" +Specify the name of the connection to receive the message. .TP .I "--print-reply" Block for a reply to the message sent, and print any reply received. diff --git a/tools/dbus-send.c b/tools/dbus-send.c index 412f5fdc..ed513fb4 100644 --- a/tools/dbus-send.c +++ b/tools/dbus-send.c @@ -30,7 +30,7 @@ static void usage (char *name, int ecode) { - fprintf (stderr, "Usage: %s [--help] [--system | --session] [--dest=SERVICE] [--type=TYPE] [--print-reply] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]\n", name); + fprintf (stderr, "Usage: %s [--help] [--system | --session] [--dest=NAME] [--type=TYPE] [--print-reply] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]\n", name); exit (ecode); } |