summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-volume-control/src/applet-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-volume-control/src/applet-main.c b/mate-volume-control/src/applet-main.c
index 48c41a1..1b4bb0a 100644
--- a/mate-volume-control/src/applet-main.c
+++ b/mate-volume-control/src/applet-main.c
@@ -33,6 +33,7 @@
#include "gvc-applet.h"
static gboolean show_version = FALSE;
+static gboolean debug = FALSE;
int
main (int argc, char **argv)
@@ -42,6 +43,7 @@ main (int argc, char **argv)
UniqueApp *app;
GOptionEntry entries[] = {
{ "version", 'v', 0, G_OPTION_ARG_NONE, &show_version, N_("Version of this application"), NULL },
+ { "debug", 'd', 0, G_OPTION_ARG_NONE, &debug, N_("Enable debug"), NULL },
{ NULL }
};
@@ -62,6 +64,9 @@ main (int argc, char **argv)
g_print ("%s %s\n", argv[0], VERSION);
return 0;
}
+ if (debug == TRUE) {
+ g_setenv ("G_MESSAGES_DEBUG", "all", FALSE);
+ }
app = unique_app_new (GVC_APPLET_DBUS_NAME, NULL);