diff options
Diffstat (limited to 'pluma/pluma-plugins-engine.c')
-rw-r--r-- | pluma/pluma-plugins-engine.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pluma/pluma-plugins-engine.c b/pluma/pluma-plugins-engine.c index cf763135..cb5e2c43 100644 --- a/pluma/pluma-plugins-engine.c +++ b/pluma/pluma-plugins-engine.c @@ -57,6 +57,7 @@ static void pluma_plugins_engine_init (PlumaPluginsEngine *engine) { GError *error = NULL; + char *user_plugins_dir; pluma_debug (DEBUG_PLUGINS); @@ -89,9 +90,11 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine) g_clear_error (&error); } + user_plugins_dir = pluma_dirs_get_user_plugins_dir (); peas_engine_add_search_path (PEAS_ENGINE (engine), - pluma_dirs_get_user_plugins_dir (), - pluma_dirs_get_user_plugins_dir ()); + user_plugins_dir, + user_plugins_dir); + g_free (user_plugins_dir); peas_engine_add_search_path (PEAS_ENGINE (engine), PLUMA_LIBDIR "/plugins", |