Skip to content

Commit

Permalink
Create an instance of GDBusProxy with G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_…
Browse files Browse the repository at this point in the history
…PROPERTIES flag.

Without the flag, on_name_owner_changed() in glib-2.26.x/gio/gdbusproxy.c might invoke a remote method named GetAll in org.freedesktop.DBus.Properties interface, but the method is not implemented in ibus-daemon. Since ibus-daemon ignores the method call, the caller, which is UI thread of Chrome on Chromium OS, will block for 25 seconds (i.e. the default timeout of GDBus) waiting for a reply.

BUG=none
TEST=manually

Review URL: http://codereview.appspot.com/3836042
  • Loading branch information
yusukes committed Dec 26, 2010
1 parent 7a8b3d7 commit 19247aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ibusconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ ibus_config_new (GDBusConnection *connection,
cancellable,
error,
"g-connection", connection,
"g-flags", G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
"g-flags", G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
"g-name", IBUS_SERVICE_CONFIG,
"g-interface-name", IBUS_INTERFACE_CONFIG,
"g-object-path", IBUS_PATH_CONFIG,
Expand Down
2 changes: 1 addition & 1 deletion src/ibusinputcontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ ibus_input_context_new (const gchar *path,
error,
"g-connection", connection,
"g-name", "org.freedesktop.IBus",
"g-flags", G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START,
"g-flags", G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
"g-interface-name", IBUS_INTERFACE_INPUT_CONTEXT,
"g-object-path", path,
NULL);
Expand Down

0 comments on commit 19247aa

Please sign in to comment.