main: grab the keyboard D-Bus interface at startup

https://bugzilla.gnome.org/show_bug.cgi?id=658065
This commit is contained in:
Dan Winship
2011-09-02 11:28:47 -04:00
parent 22dcb46bff
commit 98fa71ba18
2 changed files with 11 additions and 1 deletions

View File

@ -117,6 +117,17 @@ shell_dbus_init (gboolean replace)
g_print ("failed to acquire org.freedesktop.Notifications: %s\n", error->message);
}
/* ...and the on-screen keyboard service */
if (!dbus_g_proxy_call (bus, "RequestName", &error,
G_TYPE_STRING, "org.gnome.Caribou.Keyboard",
G_TYPE_UINT, DBUS_NAME_FLAG_REPLACE_EXISTING | request_name_flags,
G_TYPE_INVALID,
G_TYPE_UINT, &request_name_result,
G_TYPE_INVALID))
{
g_print ("failed to acquire org.freedesktop.Notifications: %s\n", error->message);
}
g_object_unref (bus);
}