Emacs logs AT-SPI warnings to console on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
at-spi2-atk (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When starting up certain (GTK?) applications from console in a custom X session, such as emacs or ubuntu-bug, there is a lot of log output like:
"""
** (emacs:4437): WARNING **: 15:05:10.026: AT-SPI: Could not obtain desktop path or name
"""
or
"""
** (apport-
"""
The issue seems to be related to at-spi2-atk, or at least that's where the code that prints the error is:
In register_reply in bridge.c:
if (reply)
{
gchar *app_name, *obj_path;
if (strcmp (dbus_message_
{
g_warning ("AT-SPI: Could not obtain desktop path or name\n");
}
Which seems to be triggered by an attempt to register the application to ATK:
static gboolean
register_
{
DBusMessage *message;
DBusMessageIter iter;
DBusPendingCall *pending;
g_free (app->desktop_
g_free (app->desktop_
/* These will be overridden when we get a reply, but in practice these
defaults should always be correct */
app->desktop_name = g_strdup (ATSPI_
app->desktop_path = g_strdup (ATSPI_
message = dbus_message_
dbus_
spi_object_
if (!dbus_
|| !pending)
{
if (pending)
return FALSE;
}
dbus_
It seems to be caused by nobody being available at the ATSPI_DBUS_
description: | updated |
Apparently this is solved by running /usr/lib/ at-spi2- core/at- spi2-registryd. Normally it seems to be launched by gdm, but my session is not started through gdm.