GNOME Bugzilla – Bug 786581
libpeas builds loaders path incorrectly when using environment variable
Last modified: 2017-08-22 01:40:57 UTC
Created attachment 358094 [details] [review] patch against master to fix building loaders path referencing environment variable in 06a14dc39929bde4a4790bc8562156edb1aa608a the building of the path to find the loaders was changed away from a simple strdup of the environmnet variable. The new functionality builds the path incorrectly: for the python loader the path build will be $PEAS_PLUGIN_LOADERS_DIR/python which causes peas to try to load $PEAS_PLUGIN_LOADERS_DIR/python/libpythonloader.so. This path _should_ be $PEAS_PLUGIN_LOADERS_DIR/libpythonloader.so without the /python/ directory. A patch against master is included, but this goes back to version 1.12 and is present in every tagged version between 1.12 and 1.21.
The environment variable is only supposed to be used for testing purposes and should never be set for any other reason. This is also why there is absolutely no documentation for it.