Escalating to the High Council.=0A-------=0A=0A=0AKWin needs[1] to set = some environment variables before libGL is instantiated.=0AThis used to= be done by an extra shared object at the end of the link order.=0A=0AW= hile i'm not sure whether the current process in CMakeLists is actually= correct, not even LD_PRELOADing the lib works - the setenv calls have = no effect, while setting the environment in the shell clearly works.=0A= =0A> A gut feeling and brief google consultation make me "blame" the fa= ct that kwin is "now" a kdeinit executable (for a while...)=0A=0ASo the= question is:=0A-------------------=0AIs there any (preferred) way to e= ither make kdeinit instatiate the special shared object before libGL or= eventually just calling setenv directly before doing so?=0A=0AOr would= the only solution be to actually set the environment from a shell, ie.= have a kwin binary or even shell script that sets the environment and = then spawns a kwin.bin subprocess?=0A=0AThanks for reading and cheers,=0A= Thomas=0A=0A[1] https://bugs.kde.org/show_bug.cgi?id=3D322060