The standout part for me is that you are not (from my quick scan) deleting the old configuration, so your changes are always additive to the current config. Try adding that plugin_del_config call and see if it all starts to work. It is perhaps worth pointing out that Config is a borg object, only one of them can exist, and it is always the current config even when instantiating a new instance. This is why not actively deleting the old config will result in old config items sticking around after you save.
Hi Dan. First, a big props picking this up and getting it to date.
I haven't tested/run the code yet, but I think I spotted the problem using a quick differential with a similar bundled plugin. See http:// bazaar. launchpad. net/~gnome- terminator/ terminator/ gtk3/view/ head:/terminato rlib/plugins/ custom_ commands. py#L106
The standout part for me is that you are not (from my quick scan) deleting the old configuration, so your changes are always additive to the current config. Try adding that plugin_del_config call and see if it all starts to work. It is perhaps worth pointing out that Config is a borg object, only one of them can exist, and it is always the current config even when instantiating a new instance. This is why not actively deleting the old config will result in old config items sticking around after you save.
Hope that helps/fixes it :-)