diff --git a/src/lib/clapper/clapper-enhancers-loader.c b/src/lib/clapper/clapper-enhancers-loader.c index 6c7a26f4..119cb637 100644 --- a/src/lib/clapper/clapper-enhancers-loader.c +++ b/src/lib/clapper/clapper-enhancers-loader.c @@ -84,6 +84,7 @@ clapper_enhancers_loader_initialize (void) peas_engine_enable_loader (_engine, "python"); peas_engine_enable_loader (_engine, "gjs"); +load_enhancers: dir_paths = g_strsplit (enhancers_path, G_SEARCHPATH_SEPARATOR_S, 0); for (i = 0; dir_paths[i]; ++i) @@ -91,6 +92,11 @@ clapper_enhancers_loader_initialize (void) g_strfreev (dir_paths); + /* Support loading additional enhancers from non-default directory */ + enhancers_path = g_getenv ("CLAPPER_ENHANCERS_EXTRA_PATH"); + if (enhancers_path && *enhancers_path != '\0') + goto load_enhancers; + if (gst_debug_category_get_threshold (GST_CAT_DEFAULT) >= GST_LEVEL_INFO) { GListModel *list = (GListModel *) _engine; guint n_items = g_list_model_get_n_items (list);