But then again shouldnt it be easy to write a plugin for this?
Yes and no, for such a simple testapp it's quite easy, for a more complex app like C::B it's much more work and will most likely need some manual tweaking.
As I wrote in the other thread, I do not have much time at the moment.
However when trying to compile my project i got somethig like
Error: Unable to initialize gtk, is DISPLAY set properly?
make: *** [clean] Error 255
Do you try to compile it as root or from a virtual terminal (not a console inside X) ?
C::B is a gui-app, even in batch-mode.
And if you want to compile it as root you have to run
before, to make your X-session available for other users (ven root is not allowed to use it otherwise).