Preloading libraries.. LD_PRELOAD

well i know what LD_PRELOAD is. Now suppose i have hooked a function XDrawString in the my library (Mylib.so.1) and then used the command
export LD_PRELOAD=/path/mylib.so.1
Now suppose i open Xeditor by typing 'xeditor' in the console, my library is geting used, so i knw that this applilcation is using this function(XDrawString)... but the effect is only for that terminal.
NOw if i open the same application from the outside the terminal , say from the RUN dialogue box, the application opens.. but now my library is not geting used...

QUESTION: Is that application using some other function now (i think thts nt the case).... or HOW TO PRE_LOAD THE LIBRARY ON A GLOBAL BASIS?

Depends on what system you're using. It'd have to be set somewhere in the boot process to be inherited by everything, there's usually some sort of system or place for that but the details can differ.

well using debian Xandros OS...

provide the full library path (one per line) in /etc/ld.so.preload