Skip to content
Browse files

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=#1844
R=shawn.p.huang@gmail.com

Review URL: https://codereview.appspot.com/289430043

Patch from Matthias Clasen <mclasen@redhat.com>.
  • Loading branch information...
1 parent 0229c57 commit 0432aa66b8728bc266da3c2cca84587bc44b3557 Matthias Clasen committed with fujiwarat Mar 8, 2016
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/ibusshare.c
View
5 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++);

0 comments on commit 0432aa6

Please sign in to comment.
Something went wrong with that request. Please try again.