summaryrefslogtreecommitdiff
path: root/libpeas/peas-dirs.c
diff options
context:
space:
mode:
authorGarrett Regier <garrettregier@gmail.com>2015-01-18 05:05:07 -0800
committerGarrett Regier <garrettregier@gmail.com>2015-01-20 01:23:07 -0800
commit06a14dc39929bde4a4790bc8562156edb1aa608a (patch)
treea68dbce642448836602c8246b51002a1ffd0487a /libpeas/peas-dirs.c
parent16c0b8e39c8645b2fa6385eaa4caadf5204fa279 (diff)
downloadlibpeas-06a14dc39929bde4a4790bc8562156edb1aa608a.tar.gz
Don't warn when loading an uninstalled plugin loader
This removes the only global log hook in the test suite.
Diffstat (limited to 'libpeas/peas-dirs.c')
-rw-r--r--libpeas/peas-dirs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpeas/peas-dirs.c b/libpeas/peas-dirs.c
index 23e17e0..df6713e 100644
--- a/libpeas/peas-dirs.c
+++ b/libpeas/peas-dirs.c
@@ -157,7 +157,7 @@ peas_dirs_get_lib_dir (void)
}
gchar *
-peas_dirs_get_plugin_loaders_dir (void)
+peas_dirs_get_plugin_loader_dir (const gchar *loader_name)
{
const gchar *env_var;
gchar *lib_dir;
@@ -165,7 +165,7 @@ peas_dirs_get_plugin_loaders_dir (void)
env_var = g_getenv ("PEAS_PLUGIN_LOADERS_DIR");
if (env_var != NULL)
- return g_strdup (env_var);
+ return g_build_filename (env_var, loader_name, NULL);
lib_dir = peas_dirs_get_lib_dir ();
loader_dir = g_build_filename (lib_dir, "loaders", NULL);