[libpeas] Use an optional env var to specify the plugin loader location.



commit bebf2a1ed95f5eeec6663e4f954d7ec398f90c09
Author: Steve Frécinaux <code istique net>
Date:   Tue Jul 20 10:44:31 2010 +0200

    Use an optional env var to specify the plugin loader location.
    
    So we can set the env var to the build directory.

 libpeas/peas-dirs.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-dirs.c b/libpeas/peas-dirs.c
index ef1644d..1274a56 100644
--- a/libpeas/peas-dirs.c
+++ b/libpeas/peas-dirs.c
@@ -96,9 +96,14 @@ peas_dirs_get_lib_dir (void)
 gchar *
 peas_dirs_get_plugin_loaders_dir (void)
 {
+  const gchar *env_var;
   gchar *lib_dir;
   gchar *loader_dir;
 
+  env_var = g_getenv ("PEAS_PLUGIN_LOADERS_DIR");
+  if (env_var != NULL)
+    return g_strdup (env_var);
+
   lib_dir = peas_dirs_get_lib_dir ();
   loader_dir = g_build_filename (lib_dir, "loaders", NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]