{
AtspiCache mask = _atspi_accessible_get_cache_mask (accessible);
AtspiCache result = accessible->cached_properties & mask & flag;
- return (result != 0 && atspi_main_loop);
+ return (result != 0 && atspi_main_loop && !atspi_no_cache);
}
void
static GHashTable *live_refs = NULL;
GMainLoop *atspi_main_loop;
+gboolean atspi_no_cache;
const char *atspi_path_dec = ATSPI_DBUS_PATH_DEC;
const char *atspi_path_registry = ATSPI_DBUS_PATH_REGISTRY;
{
DBusError error;
char *match;
+ const gchar *no_cache;
if (atspi_inited)
{
match = g_strdup_printf ("type='signal',interface='%s',member='StateChanged'", atspi_interface_event_object);
dbus_bus_add_match (bus, match, &error);
g_free (match);
+
+ no_cache = g_getenv ("ATSPI_NO_CACHE");
+ if (no_cache && g_strcmp0 (no_cache, "0") != 0)
+ atspi_no_cache = TRUE;
return 0;
}