@greenprocyon well my idea here is to see if we can get the original source unmodified and put some glue code on top to make it work as a plugin.
Some modifications were already needed, but still in a way that doesnt require changing upstream.
Without upstream changes some things will appear weird, like the file->quit menu that does nothing and library login we need to disable.
I can live with that myself tbqh.