GNOME Bugzilla – Bug 654536
GSettings: lift key name length restriction to 64
Last modified: 2011-07-19 14:19:24 UTC
I forget why we introduced the restriction for key names to be 32 characters, but it is now causing problems. I checked, and it's not because of restrictions of the Windows registry. dconf is also well-capable of handling much longer key names (up to 65535 chars, I think).
Created attachment 191868 [details] [review] GSettings: lift key name length restriction to 64 The previous limit was 32. The compiz port to GSettings is hitting its head up against this restriction since many of its plugins were already using longer key names.
I don't understand this. You seem to argue that there is no need to have any small length restrictions, but your patch does not remove the restriction.
It increases the limit to 64. We can't remove length limitations entirely. We could, however, increase them to something truly obscene (like the 65535-byte limit I mention from dconf).
64k is pretty close to 'no limit', in practice. Even 1k would be big enough to pass for 'unlimited' for key lengths. Anything below 100 most certainly is still a real limit that people will actually hit.
Okay. 1k it is. commit fe6dad271b06e6243d17137c2e0991f56a256cca Author: Ryan Lortie <desrt@desrt.ca> Date: Tue Jul 19 16:12:30 2011 +0200 GSettings: remove key length restrictions The key length now stands effectively unlimited at 1024 characters. https://bugzilla.gnome.org/show_bug.cgi?id=654536