GNOME Bugzilla – Bug 707362
gnome-sudoku crashes, code uses old names for gsettings keys
Last modified: 2014-04-24 15:48:21 UTC
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721681 Am 03.09.2013 04:23, schrieb John Foerch:> > Gnome-sudoku consistently crashes for me when I press Ctrl-J while > playing. Ctrl-J is supposed to be the key to clear top notes. The > following error is printed to the terminal: > > (gnome-sudoku:5452): GLib-GIO-ERROR **: Settings schema 'org.gnome.gnome-sudoku' does not contain a key named 'always_show_hints' > Trace/breakpoint trap > When gnome-sudoku was converted from gconf to gsettings [1], the key was renamed to 'always-show-hints' [2] but the code still uses 'always_show_hints' I guess the code should be updated to use new name: src/lib/main.py: if side == 'Bottom' and self.settings.get_boolean('always_show_hints'): src/lib/main.py: if self.settings.get_boolean ('always_show_hints'): I'm not sure if other keys were renamed too as part of the gsettings conversion, but this should be checked carefully [1] https://git.gnome.org/browse/gnome-sudoku/commit/?id=3736f8bd6cd77951ecda9403c31155014d60ae19 [2] https://git.gnome.org/browse/gnome-sudoku/tree/data/org.gnome.gnome-sudoku.gschema.xml.in?id=3736f8bd6cd77951ecda9403c31155014d60ae19#n88
Created attachment 253944 [details] [review] [PATCH] Use correct name for always-show-hints GSettings key When gnome-sudoku was converted from GConf to GSettings all keys were updated to use '-' instead of '_' but the code wasn't updated accordingly everywhere.
I've added a simple patch to fix this particular issue of always-show-hints vs always_show_hints. I haven't checked all the other keys though.
should probably fix this for 3.10 - crashes are not nice.
I think this was the only broken key.
*** Bug 686078 has been marked as a duplicate of this bug. ***
Fixed by commit: https://git.gnome.org/browse/gnome-sudoku/commit/?id=fbe9a6dfac5a0985ef9a548a693e0231567d5536