"Lei Zhang" thestig@google.com writes:
I was not sure if was alright to mix code with different licenses in the same file. I looked around and found that include/wine/wined3d_gl.h has both LGPL Wine code as well as MIT licensed code from the Mesa project. Based on that, I guess it's ok to do, so I will send out another patch.
It's OK to do, but I don't think you want to copy the code as is, you should write your own version that parses the file only once and handles variables as they are found. Also these variables should take priority over the default heuristics, and you most likely want to handle the desktop dir the same way.