ShellApp: Use unique name for menus

Otherwise since the auto-activate flag is set for dbus messages, we
may re-vivify applications that have DBus service files.

https://bugzilla.gnome.org/show_bug.cgi?id=667881
This commit is contained in:
Colin Walters 2012-01-17 13:45:43 -05:00
parent 1bac40fbe3
commit b5be62cd1b

View File

@ -1113,7 +1113,7 @@ on_dbus_proxy_gotten (GObject *initable,
g_variant_get_child (menu_property, 0, "&o", &object_path);
state->remote_menu = G_MENU_MODEL (g_dbus_menu_model_get (g_dbus_proxy_get_connection (state->app_proxy),
state->dbus_name,
g_dbus_proxy_get_name (state->app_proxy),
object_path));
g_object_notify (G_OBJECT (self), "menu");