plugin/default: Don't load properties when getting locale proxy

This cuts away between 7 and 40 ms from the startup of tests.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2678>
This commit is contained in:
Jonas Ådahl 2022-10-28 15:48:13 +02:00 committed by Marge Bot
parent 5767d2f129
commit 562024f746

View File

@ -424,7 +424,9 @@ init_keymap (MetaDefaultPlugin *self)
g_autofree char *x11_variant = NULL; g_autofree char *x11_variant = NULL;
proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE, (G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES |
G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS |
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START),
NULL, NULL,
"org.freedesktop.locale1", "org.freedesktop.locale1",
"/org/freedesktop/locale1", "/org/freedesktop/locale1",