Do not load if NO_AT_BRIDGEis set and non-zero
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / bridge.c
index eb2fa75..361d52b 100644 (file)
@@ -39,7 +39,7 @@
 #include "accessible-register.h"
 #include "adaptors.h"
 
-#include "spi-common/spi-dbus.h"
+#include "common/spi-dbus.h"
 
 /*
  * Provides the path for the introspection directory.
@@ -330,7 +330,12 @@ adaptor_init (gint *argc, gchar **argv[])
 int
 gtk_module_init (gint *argc, gchar **argv[])
 {
-  return adaptor_init (argc, argv);
+  const gchar *load_bridge = g_getenv ("NO_AT_BRIDGE");
+
+  if (!load_bridge || g_ascii_strtod (load_bridge, NULL) == 0)
+    {
+       return adaptor_init (argc, argv);
+    }
 }
 
 /*END------------------------------------------------------------------------*/