Comment 32 for bug 985202

Revision history for this message
agenkin (agenkin-p) wrote :

Some more notes.

(1) In the above workaround, the symlink /usr/bin/kwin-ld to /lib/i386-linux-gnu/ld-2.15.so is not necessary, as the line "exec /usr/bin/kwin-ld --library-path" can be replaced with "exec /lib/i386-linux-gnu/ld-2.15.so --lbrary-path ...". But then the kwin process appears as "ld-2.15.so" in the process list, and we didn't like that (we have lots of users with simultaneous NX sessions). With the symlink as above the kwin process appears as "kwin-ld", which works for us better.

(2) We think that Helmer Teles is right that only libXfixes needs to be replaced. So, one can modify our solution to only have libXfixes library in the directory. However, we already had all of the other older libraries replaced, and kwin was stable. So we decided to play it safe and still replace all of those libraries, but limit their visibility to only the kwin binary.

(3) We are using the run-time linker to set the library path in the wrapper, rather than doing it via LD_LIBRARY_PATH environment variable because we don't want the environment variable propagating to kwin's child processes. We want all processes except kwin to run with unmodified versions of X libraries.