~elementary-os/elementaryos/os-patch-at-spi2-core-xenial

« back to all changes in this revision

Viewing changes to debian/patches/no_a11y_warning_ssh

  • Committer: RabbitBot
  • Date: 2016-11-16 09:38:52 UTC
  • Revision ID: rabbitbot@elementary.io-20161116093852-xn6hcgpg5y25xooo
Initial import, version 2.18.3-4ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit 11b41853eb2047ad2f53ee51ec5872f5ba701fa7
 
2
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
 
3
Date:   Mon Feb 8 13:24:25 2016 -0600
 
4
 
 
5
    Don't display warning if unable to connect when logged in via ssh
 
6
    
 
7
    https://bugzilla.gnome.org/show_bug.cgi?id=761600
 
8
 
 
9
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
 
10
index 075a968..3a1d174 100644
 
11
--- a/atspi/atspi-misc.c
 
12
+++ b/atspi/atspi-misc.c
 
13
@@ -1588,7 +1588,8 @@ atspi_get_a11y_bus (void)
 
14
 
 
15
   if (!a11y_bus)
 
16
     {
 
17
-      g_warning ("Couldn't connect to accessibility bus: %s", error.message);
 
18
+      if (!g_getenv("SSH_CONNECTION"))
 
19
+        g_warning ("Couldn't connect to accessibility bus: %s", error.message);
 
20
       dbus_error_free (&error);
 
21
       return NULL;
 
22
     }