[Vm-dev] search order for plugins

subbukk subbukk at gmail.com
Thu Apr 26 18:48:29 UTC 2007


Hi,

In platforms/unix/vm/sqUnixExternalPrims.c:
231   if ((   handle= tryLoading(    "./",                  pluginName))
232       || (handle= tryLoadingPath("SQUEAK_PLUGIN_PATH",  pluginName))
233       || (handle= tryLoading(    VM_LIBDIR"/",          pluginName))
234       || (handle= tryLoadingPath("LD_LIBRARY_PATH",     pluginName))
235       || (handle= tryLoading(    "",                    pluginName))

The most likely place to find plugins would be the directory where the 
squeakvm executable is located. So, shouldn't the search start from that 
directory? The current directory is not a reliable location and should be 
tried only as a last resort.

An strace of squeak (3.7.7) startup reveals 181 attempts to open of which 
179 fails with ENOENT.

Regards .. Subbu


More information about the Vm-dev mailing list