plugin/default: Autostart localed when querying keyboard layout

Otherwise it's required that systemd-localed is already running, which
is unlikely, since it will auto-terminate by default.

Fixes: 562024f746b5bcae7fcdd9cc2adac7a94f726110
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2710>
This commit is contained in:
Jonas Ådahl 2022-11-23 23:22:25 +01:00 committed by Marge Bot
parent 74bb480753
commit eb7abdacd8

View File

@ -425,8 +425,7 @@ init_keymap (MetaDefaultPlugin *self)
proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
(G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES |
G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS |
G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START),
G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS),
NULL,
"org.freedesktop.locale1",
"/org/freedesktop/locale1",