GNOME Bugzilla – Bug 517259
Escape hostname for use in gconf key
Last modified: 2008-02-19 22:15:24 UTC
Novell bug: https://bugzilla.novell.com/show_bug.cgi?id=345925 === Running FACTORY version of GNOME, if you press the caps lock key, I get a dialog box that comes up saying: "An error occurred while loading or saving configuration information for gnome-settings-daemon. Some of your configuration settings may not work properly." The details of the error box says: "Bad key or directory name: "/desktop/gnome/peripherals/keyboard/host-3(NXDOMAIN)/0/numlock_on": `(' is an invalid character in key/directory names" For some reason I have my hostname set to "3(NXDOMAIN)" due to some other networking errors and using a hotel wireless network. It is not the same hostname that was when gnome started up. I'm guessing that we need to "sanitize" the hostname variable to be something that gconf would allow as a key/directory name. === I'll attach a patch. I couldn't test it since my compilation chain is broken right now.
Created attachment 105517 [details] [review] Escape hostname for gconf (needs testing)
Looks good, please commit.
Committed.