From fc5e3a06cf4876fb10d0205a626e51109f29eb82 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sun, 18 May 2003 02:39:47 +0000 Subject: 2003-05-17 Colin Walters * tools/dbus-send.c: Don't exit with an error code if --help was passed. Default to using the session bus instead of the system one. * tools/dbus-launch.c: Ditto. * tools/dbus-monitor.c: Ditto. * tools/dbus-send.1: Update with new arguments. * tools/dbus-launch.c: Emit code to export variables. New arguments -s and -c to specify shell syntax, and a bit of code to autodetect syntax. Also, allow specifying a program to run. * tools/dbus-launch.1: Update with new arguments. * tools/dbus-send.1: Ditto. * tools/dbus-monitor.1: Ditto. --- tools/dbus-monitor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/dbus-monitor.c') diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c index 465515ba..9628c422 100644 --- a/tools/dbus-monitor.c +++ b/tools/dbus-monitor.c @@ -46,7 +46,7 @@ handler_func (DBusMessageHandler *handler, static void usage (char *name, int ecode) { - fprintf (stderr, "Usage: %s [--session]\n", name); + fprintf (stderr, "Usage: %s [--system]\n", name); exit (ecode); } @@ -55,7 +55,7 @@ main (int argc, char *argv[]) { DBusConnection *connection; DBusError error; - DBusBusType type = DBUS_BUS_SYSTEM; + DBusBusType type = DBUS_BUS_SESSION; DBusMessageHandler *handler; GMainLoop *loop; int i; @@ -65,7 +65,7 @@ main (int argc, char *argv[]) char *arg = argv[i]; if (!strcmp (arg, "--session")) - type = DBUS_BUS_SESSION; + type = DBUS_BUS_SYSTEM; else if (!strcmp (arg, "--help")) usage (argv[0], 0); else if (!strcmp (arg, "--")) -- cgit