Version: (using KDE KDE 3.0.99) Installed from: Compiled From Sources OS: Linux My kxkb has two layouts: the usual, pt-br, and a dvorak one If I'm using the dvorak one and logout, when I log on again kxkb switches back to pt-br. Shouldn't it keep the last one used? Session management is turned on and works with all other applications
it's easy to implement for 'Global' switching policy in kxkb but prett hard to impossible for 'Application' and 'Window', moving to wishlist
*** Bug 88675 has been marked as a duplicate of this bug. ***
*** Bug 96204 has been marked as a duplicate of this bug. ***
See also bug 197823: "The layout switcher has not memory. Layouts passed in fixed order."
Coming to KDE 4.7: http://techbase.kde.org/Schedules/KDE4/4.7_Feature_Plan#kde-workspace
Git commit def90750e40ff6dc8b7cff6d778dd2e4bd8d1010 by Andriy Rysin. Committed on 17/04/2011 at 22:39. Pushed by rysin into branch 'master'. Add session support for keyboard layouts BUG: 52095 FIXED_IN: 4.7.0 M +1 -0 kcontrol/keyboard/CMakeLists.txt M +3 -0 kcontrol/keyboard/keyboard_config.cpp M +2 -0 kcontrol/keyboard/keyboard_config.h M +12 -0 kcontrol/keyboard/keyboard_daemon.cpp M +8 -2 kcontrol/keyboard/layout_memory.h A +260 -0 kcontrol/keyboard/layout_memory_persister.cpp [License: GPL (v2+)] A +52 -0 kcontrol/keyboard/layout_memory_persister.h [License: GPL (v2+)] M +3 -0 kcontrol/keyboard/tests/CMakeLists.txt A +101 -0 kcontrol/keyboard/tests/keyboard_daemon_test.cpp [License: GPL (v2+)] A +160 -0 kcontrol/keyboard/tests/layout_memory_persister_test.cpp [License: GPL (v2+)] M +5 -0 kcontrol/keyboard/x11_helper.h http://commits.kde.org/kde-workspace/def90750e40ff6dc8b7cff6d778dd2e4bd8d1010
Just a note: restoring layouts works for all switching modes except "By window". I am not sure if there's an easy way to restore layouts by window: currently keyboard daemon remembers layouts by WId which is transient. Theoretically we could try to store layout information into window properties and let kcmserver restore them and then keyboard daemon will have to read that but that would be quite different from what it does now so that might take another 8 years to implement :)
I use per-application layouts and these are not remembered either. Should a new bug report be opened for that?
Silver, is session management set to 'Restore previous session' in KDE?
Yes, it is.