avoid DYLD_LIBRARY_PATH on macOS
Hi @speleo3,
I'm looking into cleaning up my usage of DYLD_LIBRARY_PATH
in https://gitlab.com/inkscape/inkscape/blob/master/src/inkscape-main.cpp#L124 as we've talked about.
After further testing and reading documentation, the only change that seems possible is to use DYLD_FALLBACK_LIBRARY_PATH
instead, while respecting and appending the default values as mentioned in man dyld
or this Homebrew PR for reference.
The reason being that Python GTK bindings do load libraries with dlopen()
and there is no way I can influence that lookup otherwise. Or am I missing something?
Example:
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk # <- causes e.g. 'dlopen(libgobject-2.0.0.dylib)'