[Xfce4-commits] <terminal:master> Don't print a warning from the dbus output.
Nick Schermer
noreply at xfce.org
Wed Oct 7 10:14:01 CEST 2009
Updating branch refs/heads/master
to aa9addd2fc493d0a8b106dbaf9b4b47d65d46989 (commit)
from da9126d9d1c2b6331f8ddd0071d27703aaa421b2 (commit)
commit aa9addd2fc493d0a8b106dbaf9b4b47d65d46989
Author: Nick Schermer <nick at xfce.org>
Date: Wed Oct 7 09:57:02 2009 +0200
Don't print a warning from the dbus output.
terminal/main.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/terminal/main.c b/terminal/main.c
index c78ae92..2d52e39 100644
--- a/terminal/main.c
+++ b/terminal/main.c
@@ -223,17 +223,19 @@ main (int argc, char **argv)
}
else
{
-#ifdef DEBUG
- g_warning ("Unable to invoke remote terminal: %s",
- error->message);
-#endif
-
/* handle "User mismatch" special */
if (error->domain == TERMINAL_ERROR
&& error->code == TERMINAL_ERROR_USER_MISMATCH)
{
/* don't try to establish another service here */
options->disable_server = TRUE;
+#ifdef G_ENABLE_DEBUG
+ g_debug ("User mismatch when invoking remote terminal: %s", error->message);
+ }
+ else
+ {
+ g_debug ("No running instance found: %s", error->message);
+#endif /* !DEBUG */
}
g_error_free (error);
More information about the Xfce4-commits
mailing list