diff options
author | Michal Ratajsky <[email protected]> | 2014-11-03 01:51:58 +0100 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-11-03 01:51:58 +0100 |
commit | deae9e6bbe405bff4e3ce53db523743d80eb47fd (patch) | |
tree | 72dc209a71a17aab459137a78a349b284a098147 | |
parent | 3c30ffa2f4eb8eef845db1447904dd80c5a4ee1d (diff) | |
download | mate-media-deae9e6bbe405bff4e3ce53db523743d80eb47fd.tar.bz2 mate-media-deae9e6bbe405bff4e3ce53db523743d80eb47fd.tar.xz |
Restore the debug command-line option in MVC as done previously for the applet
-rw-r--r-- | mate-volume-control/src/dialog-main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mate-volume-control/src/dialog-main.c b/mate-volume-control/src/dialog-main.c index c111c26..08c55fc 100644 --- a/mate-volume-control/src/dialog-main.c +++ b/mate-volume-control/src/dialog-main.c @@ -34,6 +34,7 @@ #define DIALOG_POPUP_TIMEOUT 3 static guint popup_id = 0; +static gboolean debug = FALSE; static gboolean show_version = FALSE; static gchar *page = NULL; @@ -181,6 +182,7 @@ main (int argc, char **argv) UniqueApp *app; GOptionEntry entries[] = { { "backend", 'b', 0, G_OPTION_ARG_STRING, &backend, N_("Sound system backend"), "pulse|alsa|oss|null" }, + { "debug", 'd', 0, G_OPTION_ARG_NONE, &debug, N_("Enable debug"), NULL }, { "page", 'p', 0, G_OPTION_ARG_STRING, &page, N_("Startup page"), "effects|hardware|input|output|applications" }, { "version", 'v', 0, G_OPTION_ARG_NONE, &show_version, N_("Version of this application"), NULL }, { NULL } @@ -203,6 +205,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_DIALOG_DBUS_NAME, NULL); |