Hehe, thanks for looking through the code, I hope it’s somewhat legible. That line is actually almost a year old now. There were two previous iterations of this project which never saw any release (and were mostly made because I wanted to improve my Rust skills). But that function has survived through all of them. I’ve actually recovered from my joylessness pretty quickly. But hugs are always welcome! :)
Your keybindings won’t get overwritten by the app, I’m only putting my bindings into GW2’s import path as an XML. So you can back your bindings up in game by exporting them, and then import mine. I think the actual keybindings are stored on GW2’s server side, so it’s not really possible for me to change them directly.
This is not the case with Steam’s controller layouts, though. There, I’m overwriting the current “autosave”, so if that isn’t backed up beforehand, it might get lost.
Thanks for the suggestion! I’m not really familiar with using 3rd party plugins on Linux, so I can’t make any promises, but I’ll look into it! :)