Peas prepending search path does not seem to work
The path given by the environment variable CALLS_PLUGIN_DIR
should get prepended to the search path here:
https://source.puri.sm/Librem5/calls/-/blob/master/src/calls-manager.c#L714
Actually plugins from the "prepended" path are not loaded prioritized: https://gitlab.gnome.org/GNOME/libpeas/-/issues/19
Thread 1 "gnome-calls" hit Breakpoint 1, calls_manager_init (self=0x7fffe4007b60 [CallsManager]) at ../src/calls-manager.c:723
723 dir = g_getenv ("CALLS_PLUGIN_DIR");
(gdb) n
724 if (dir && dir[0] != '\0') {
(gdb) p dir
$1 = (const gchar *) 0x7fffffffebcd "/home/fortysixandtwo/git/calls/_build/plugins"
(gdb) c
Continuing.
Thread 1 "gnome-calls" hit Breakpoint 3, calls_provider_load_plugin (name=0x555555781850 "sip") at ../src/calls-provider.c:225
225 g_debug ("Loaded plugin `%s' from directory `%s'",
(gdb) n
(sm.puri.Calls:223004): CallsProvider-DEBUG: 09:57:35.841: Loaded plugin `sip' from directory `/home/fortysixandtwo/install/lib/x86_64-linux-gnu/calls/plugins/sip'
This can be a bit confusing!