Another old patch retrieved from the Comix feature request tracker.
2 lines of code, a fairly standard Gnome/GTK thing to write out keybindings to disk as an accels file.
There's probably a better location to write this out to than the one used in the patch, there's probably a cross desktop XDG standard.
It's a relatively simple change (and more signficant with binary apps) but it means that users can change keybindings by editing text file, and not need to have admin or install a modified version to their own home directory. It's also great if you want to keep a custom set of keybindings the developer doesn't like, or you even want to be able to ship a few different sets of keybindings and drop set you like. (It's not particularly discoverable, but it's a really great thing to have.)
Here's a link to the Comix tracker but I've included the essential bit of API below anyhow
# Save keyboard accelerators to ~/.comix/accels.
# Load keyboard accelerators from ~/.comix/accels.
I saw a section in main.py about config files so write goes there, not sure about loading.