[snip] > in that case you want EHACK! look at e17's code. there's code there > for executing programs WITHIN the LD_PRELOAD environment for JUST THIS > PURPOSE :) I wrote this specifically for what you are trying to solve > :) If you do thsi you are guaranteed that ALL window ID's of apps your > WM launches will have this (and all child processes will put their > pid's on it too! :)). there's also a LAUNCH+ID property.. this lets > you > track child processes easily as they will have the same LAUNCH_ID > (inherited via shell environment variables) so when you execute the > program with the call you get back a launch ID - you now can map the > pid you get via the LAUNCH_ID. > > it also adds a whole host of other goodies (user name, machine name,, > launch id, launch path, parent process id). > > NB: this will not work for setuid programs as LD_PRELOAD's cannot be > used with them.. this is a very very very small number of programs >though. > > :) so don't despair... there are HACKS you can do :)
Thanks!!! You have saved my day (and probably days to come :-) Martin Ehmsen -- How we do it ... Geometers do it with involutions. Geometres do it symmetrically. Graph theorists do it in four colours. Hilbert spacers do it orthogonally. _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
