2

I am developing custom software on a RHEL system, which tightly locks down every user on the system. I have implemented my own lock screen through dbus, user screen lock (Alt+L) through xbindkeys, and that's pretty much all I want them to be able to do.

I have an installation script for root to perform but for now, unfortunately, for every user root creates he has to go to gconf-editor or through the System->Keyboard Shortcuts->Disable, Disable, Disable,... sequence. Is there a way to run a command to remove all keyboard mappings for a user? Maybe through gconftool-2?

Zelda
  • 6,158
  • 1
  • 21
  • 27
jiveturkey
  • 186
  • 7

2 Answers2

2

Haven't used Gnome2 in a while but if memory serves, the file you are looking for is

~/.gconf/apps/metacity/global_keybindings/%gconf.xml 

Deleting that file should remove all Gnome2 keybindings.

Chris Down
  • 122,090
  • 24
  • 265
  • 262
terdon
  • 234,489
  • 66
  • 447
  • 667
  • so far all I have is `~/.gconf/desktop/gnome/accessilibility/keyboard` which seems to have any relation to a keyboard. I will try and disable a few mappings and see if it creates a file. – jiveturkey Jan 06 '14 at 15:29
  • @jnbbender enabling mappings should create the file, not the other way around. This is definitely gnome2 not gnome3 right? – terdon Jan 06 '14 at 15:32
  • Yeah, it's creating directories and files with empty XML tags like a beast now. Thanks for the input. I'll package up what it creates and ship it out with the rest of my delivery. – jiveturkey Jan 06 '14 at 15:46
0

Here's two half-ideas which maybe combine to a whole (but I have no system ready to try it): I suspect that the settings go to the user's ~/.gconf directory or similar? There is a global default on what goes into a new user's home directory, possibly /etc/skel.d/. It might be possible to put the "cleaned up" .gconf in there to have it installed for every new user.

Ulrich Schwarz
  • 15,669
  • 4
  • 47
  • 58