diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-03-08 11:16:24 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2016-03-08 11:16:24 +0900 |
commit | 0432aa66b8728bc266da3c2cca84587bc44b3557 (patch) | |
tree | 1b5537352623ae8d565ec5e26856fdeccb1a20a2 | |
parent | 0229c57773144f6f78ed568a0afc1999679c7d51 (diff) | |
download | ibus-0432aa66b8728bc266da3c2cca84587bc44b3557.tar.gz |
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 <mclasen@redhat.com>.
-rw-r--r-- | src/ibusshare.c | 5 |
1 files changed, 1 insertions, 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++); |