Registered Member
|
I've created my own shortcuts scheme for kwin and I would like to set it as default for all users. There are few predefined keyboard schemes (*.kksrc) in /usr/share/kde4/apps/kcmkeys: kde-, win-, unix-, mac- and WindowsMaker-like (first and second ones have versions for keyboards with 4\3 prefix keys (with\without Win key)). If I add my own scheme (e. g. my.kksrc), how can I make KDE to use it as default one instead of kde4.kksrc for all users?
|
|
you can override `kde4-config --path config`/kglobalshortcutsrc and its possible to extend the paths of KDEDIRS, see http://techbase.kde.org/KDE_System_Admi ... _Hierarchy but a specific *.kksrc needed to be inported into the users (or layered) kglobalshortcutsrc
If you only want to provide a custom prefabbed kglobalshortcutsrc for new users, /etc/skel is the usual way |
Registered Member
|
luebking, there's NO global `kde4-config --path config`/kglobalshortcutsrc file, at least in openSUSE, and it's ignored when I add one. There are only *.kksrc's mentioned above. The system chooses one of them in some way to be default (kde4.kksrc, 4 means 4 prefix keys (Shift, Ctrl, Alt, Win), not KDE version). So my question is how does it chooses and how can I change it's choice.
/etc/skel/ is really the simplest way, but it's felt like a "dirty hack". Isn't there a nicer decision? |
|
globalshortcutsregistry.cpp: ,_config("kglobalshortcutsrc", KConfig::SimpleConfig)
Ie. you're right, neither any system nor even kdeglobals is invoked for the settings. -> You won't get around /etc/skel, preparing a default kglobalshortcutsrc for each user, or modify kglobalaccel to KConfig::CascadeConfig to have it also read /usr/share/config/kglobalshortcutsrc. Sorry. |
Registered Member
|
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar