gnome-settings-daemon/gnome-settings-daemon-bnc369263-broken-xkb-layout.patch

30 lines
1.0 KiB
Diff

This is really only a workaround to unbreak things on startup. We need more
time to investigate what the real fix is, and we don't have enough time for
openSUSE 11.0.
Index: gnome-settings-daemon-2.22.1/plugins/keyboard/gsd-keyboard-manager.c
===================================================================
--- gnome-settings-daemon-2.22.1.orig/plugins/keyboard/gsd-keyboard-manager.c
+++ gnome-settings-daemon-2.22.1/plugins/keyboard/gsd-keyboard-manager.c
@@ -410,6 +410,7 @@ gsd_keyboard_manager_start (GsdKeyboardM
GError **error)
{
GConfClient *client;
+ char *program;
gnome_settings_profile_start (NULL);
@@ -430,6 +431,12 @@ gsd_keyboard_manager_start (GsdKeyboardM
apply_settings (client, 0, NULL, manager);
g_object_unref (client);
+ program = g_find_program_in_path ("setxkbmap");
+ if (program != NULL) {
+ g_spawn_command_line_async (program, NULL);
+ g_free (program);
+ }
+
gnome_settings_profile_end (NULL);
return TRUE;