Has anyone had a look at how XUPorter could set environment variables? Like so:  I might be able to implement this myself but I was wondering if anyone has an idea of where to even start.