mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-04 23:51:17 +00:00
manager: Don't use peas_engine_prepend_search_path
as it does not really "prepend" the search path. See https://gitlab.gnome.org/GNOME/libpeas/-/issues/19 Closes #300
This commit is contained in:
parent
e00b90d64e
commit
23e7fd3a60
1 changed files with 6 additions and 4 deletions
|
@ -703,17 +703,19 @@ calls_manager_init (CallsManager *self)
|
|||
self->contacts_provider, "country-code",
|
||||
G_BINDING_DEFAULT);
|
||||
|
||||
// Prepend peas plugin search path
|
||||
peas = peas_engine_get_default ();
|
||||
peas_engine_add_search_path (peas, PLUGIN_LIBDIR, NULL);
|
||||
g_debug ("Scanning for plugins in `%s'", PLUGIN_LIBDIR);
|
||||
|
||||
dir = g_getenv ("CALLS_PLUGIN_DIR");
|
||||
if (dir && dir[0] != '\0') {
|
||||
/** Add the directory to the search path. prepend_search_path() does not work
|
||||
* as expected. see https://gitlab.gnome.org/GNOME/libpeas/-/issues/19
|
||||
*/
|
||||
g_debug ("Adding %s to plugin search path", dir);
|
||||
peas_engine_prepend_search_path (peas, dir, NULL);
|
||||
peas_engine_add_search_path (peas, dir, NULL);
|
||||
}
|
||||
|
||||
peas_engine_add_search_path (peas, PLUGIN_LIBDIR, NULL);
|
||||
g_debug ("Scanning for plugins in `%s'", PLUGIN_LIBDIR);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue