From 11b41853eb2047ad2f53ee51ec5872f5ba701fa7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 8 Feb 2016 13:24:25 -0600 Subject: [PATCH] Don't display warning if unable to connect when logged in via ssh https://bugzilla.gnome.org/show_bug.cgi?id=761600 --- atspi/atspi-misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c index 075a968..3a1d174 100644 --- a/atspi/atspi-misc.c +++ b/atspi/atspi-misc.c @@ -1588,7 +1588,8 @@ atspi_get_a11y_bus (void) if (!a11y_bus) { - g_warning ("Couldn't connect to accessibility bus: %s", error.message); + if (!g_getenv("SSH_CONNECTION")) + g_warning ("Couldn't connect to accessibility bus: %s", error.message); dbus_error_free (&error); return NULL; } -- 2.7.4