Don't display warning if unable to connect when logged in via ssh
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 8 Feb 2016 19:24:25 +0000 (13:24 -0600)
committerMike Gorse <mgorse@suse.com>
Mon, 8 Feb 2016 19:24:25 +0000 (13:24 -0600)
https://bugzilla.gnome.org/show_bug.cgi?id=761600

atspi/atspi-misc.c

index 075a968..3a1d174 100644 (file)
@@ -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;
     }