From 562024f746b5bcae7fcdd9cc2adac7a94f726110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 28 Oct 2022 15:48:13 +0200 Subject: [PATCH] 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: --- src/compositor/plugins/default.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compositor/plugins/default.c b/src/compositor/plugins/default.c index 110f1f32b..bb46c0553 100644 --- a/src/compositor/plugins/default.c +++ b/src/compositor/plugins/default.c @@ -424,7 +424,9 @@ init_keymap (MetaDefaultPlugin *self) g_autofree char *x11_variant = NULL; 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, "org.freedesktop.locale1", "/org/freedesktop/locale1",