GNOME Bugzilla – Bug 699451
Global 'settings' variable can clash with the same in evolution-rspam
Last modified: 2013-05-04 20:33:11 UTC
Moving this from a downstream bug report: https://bugzilla.redhat.com/show_bug.cgi?id=886881 The reported has installed both evolution-rss and evolution-rspam, and it happened to him that the global GSettings 'settings' variable from rss was picked when reading in rspam plugin, which caused crash: > Settings schema 'org.gnome.evolution.plugin.rss' does not contain > a key named 'move-junk' I do not know whether it's the cause for sure, but it's the most probable reason, what could happen here, from my point of view. Defining the variable static will help to prevent this 'variable interleaving'. Or renaming the global variable, though the best would be to not use global variables at all.
Created attachment 243047 [details] [review] proposed evo-rss patch for evolution-rss; This may do it.
Created attachment 243048 [details] [review] proposed evo-rspam patch for evolution-rspam; If I'm not mistaken, than Cooly also takes care of evo-rspam, thus here's a similar change for that too.
Thank you Milan, created commit 871dbc2 for evolution-rss.
Commit 26cfd40 on evolution-rspam, slightly adapted. Thanks!