Bug 52095 - No session management in kxkb (it doesn't remembers the last layout)
Summary: No session management in kxkb (it doesn't remembers the last layout)
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Andriy Rysin
: 88675 96204 (view as bug list)
Depends on:
Reported: 2002-12-19 13:29 UTC by ismore
Modified: 2013-09-03 09:47 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.0


Note You need to log in before you can comment on or make changes to this bug.
Description ismore 2002-12-19 13:29:12 UTC
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
Comment 1 Andriy Rysin 2003-08-24 06:11:13 UTC
it's easy to implement for 'Global' switching policy in kxkb but prett hard to
impossible for 'Application' and 'Window', moving to wishlist
Comment 2 Andriy Rysin 2004-10-11 00:43:46 UTC
*** Bug 88675 has been marked as a duplicate of this bug. ***
Comment 3 Andriy Rysin 2006-03-03 05:36:01 UTC
*** Bug 96204 has been marked as a duplicate of this bug. ***
Comment 4 Fiable.biz 2009-06-25 12:36:54 UTC
See also bug 197823: "The layout switcher has not memory. Layouts passed in fixed order."
Comment 5 Andriy Rysin 2011-04-17 20:08:23 UTC
Coming to KDE 4.7: http://techbase.kde.org/Schedules/KDE4/4.7_Feature_Plan#kde-workspace
Comment 6 Andriy Rysin 2011-04-17 22:32:46 UTC
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     

Comment 7 Andriy Rysin 2011-04-18 00:23:17 UTC
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 :)
Comment 8 Silver Salonen 2013-08-28 07:44:38 UTC
I use per-application layouts and these are not remembered either. Should a new bug report be opened for that?
Comment 9 Andriy Rysin 2013-08-31 00:15:50 UTC
Silver, is session management set to 'Restore previous session' in KDE?
Comment 10 Silver Salonen 2013-09-03 09:47:46 UTC
Yes, it is.