From 0432aa66b8728bc266da3c2cca84587bc44b3557 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 8 Mar 2016 11:16:24 +0900 Subject: Don't warn if DISPLAY is not set This is normal under Wayland, and not worth warning about. The warnings disrupt unit tests in GNOME continuous, which treat warnings as fatal. BUG=https://github.com/ibus/ibus/pull/1844 R=shawn.p.huang@gmail.com Review URL: https://codereview.appspot.com/289430043 Patch from Matthias Clasen . --- src/ibusshare.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ibusshare.c b/src/ibusshare.c index 63800a60..b793a962 100644 --- a/src/ibusshare.c +++ b/src/ibusshare.c @@ -113,10 +113,7 @@ ibus_get_socket_path (void) display = g_strdup (_display); } - if (display == NULL) { - g_warning ("DISPLAY is empty! We use default DISPLAY (:0.0)"); - } - else { + if (display) { p = display; hostname = display; for (; *p != ':' && *p != '\0'; p++); -- cgit v1.2.1