summaryrefslogtreecommitdiffstats
path: root/tools/dbus-monitor.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2003-05-18 02:39:47 +0000
committerColin Walters <walters@verbum.org>2003-05-18 02:39:47 +0000
commitfc5e3a06cf4876fb10d0205a626e51109f29eb82 (patch)
treed769ade2a3a00f707c525aa605e3e85396bfb35a /tools/dbus-monitor.c
parent8826fea41716e30987511b7739f9cffab7b814c4 (diff)
2003-05-17 Colin Walters <walters@gnu.org>
* 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.
Diffstat (limited to 'tools/dbus-monitor.c')
-rw-r--r--tools/dbus-monitor.c6
1 files changed, 3 insertions, 3 deletions
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, "--"))