GNOME Bugzilla – Bug 359365
Gconf troubles with aisleriot rules
Last modified: 2012-01-31 23:15:19 UTC
Aisleriot uses /apps/aisleriot/rules/<Translated game name> to store current rules for game, for example for Klondike. It causes wierd behaviour since gconf doesn't allow non-ascii chars in key path. After every start of sol with Klondike empty dialog appears reporting about some gconf error. Probably game name should not be translated. To reproduce: 1. switch to Klondike 2. run LANG=ru_RU.utf8 sol 3. see the dialog
Created attachment 73968 [details] [review] Quick and dirty patch This patch should solve the problem but I still think it's better use untranslated name. This way settings won't depend on locale.
Thanks for the "quick and dirtly" patch. In your opinion, is this patch safe to commit also to the 2.16.x branch of gnome-games?
Actually there are similar problems with per-game help invocation (yelp requires untranslated name) and with recent games list. I suspect it's better to make it better.
Created attachment 73981 [details] [review] Better patch This one does job more correctly. I don't know if it's suitable for stable, it's up to you, but actually it's quite annoying and very high visible bug.
Nickolay, can you describe how your final patch solves this bug?
It uses ascii patch for gconf key which is constructed from untranslated string game_file @@ -427,8 +399,7 @@ make_option_gconf_key (void) GConfSchema *schema; GConfValue *def; - r = g_strconcat (basekey, ugamename, NULL); - + r = g_strconcat (basekey, game_file, NULL); sk = g_strconcat ("/schemas", r, NULL); It also uses function to convert untranslated game_file to id in help index, thus it solve the problem with per-game help.
*** Bug 368369 has been marked as a duplicate of this bug. ***
*** Bug 345921 has been marked as a duplicate of this bug. ***
*** Bug 384317 has been marked as a duplicate of this bug. ***
*** Bug 441987 has been marked as a duplicate of this bug. ***
This bug is being reassigned to the "general" component so we can close the aisleriot bugzilla component. Apologies for the mass email!