chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ne / nemo-python / load-extensions-from-env.patch
blobad9a4abdc387faa2302d637bdb36056da7439b04
1 diff --git a/src/nemo-python.c b/src/nemo-python.c
2 index 8d2acdb..900811b 100644
3 --- a/src/nemo-python.c
4 +++ b/src/nemo-python.c
5 @@ -255,6 +255,7 @@ nemo_module_initialize(GTypeModule *module)
7 gchar *user_extensions_dir;
8 const gchar *env_string;
9 + const gchar *python_extensiondir;
11 env_string = g_getenv("NEMO_PYTHON_DEBUG");
12 if (env_string != NULL)
13 @@ -269,8 +270,12 @@ nemo_module_initialize(GTypeModule *module)
15 all_types = g_array_new(FALSE, FALSE, sizeof(GType));
17 - // Look in the new global path, $DATADIR/nemo-python/extensions
18 - nemo_python_load_dir(module, PYTHON_EXTENSION_DIR);
19 + // Look in NEMO_PYTHON_EXTENSION_DIR
20 + python_extensiondir = g_getenv("NEMO_PYTHON_EXTENSION_DIR");
21 + if (python_extensiondir == NULL) {
22 + python_extensiondir = PYTHON_EXTENSION_DIR;
23 + }
24 + nemo_python_load_dir(module, python_extensiondir);
26 // Look in XDG_DATA_DIR, ~/.local/share/nemo-python/extensions
27 user_extensions_dir = g_build_filename(g_get_user_data_dir(),