diff options
author | rbuj <[email protected]> | 2021-02-03 14:51:47 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-25 08:10:37 +0100 |
commit | e65d7ee54219da2b4387017617f881c8a8934c97 (patch) | |
tree | d4e38eb8b46a8107681ae79d413a4090ac7cce07 | |
parent | 68a972e6082a61a89a86231d118d354d239f2f52 (diff) | |
download | pluma-e65d7ee54219da2b4387017617f881c8a8934c97.tar.bz2 pluma-e65d7ee54219da2b4387017617f881c8a8934c97.tar.xz |
pluma-plugins-engine: Do not build the path to girepository-1.0
-rw-r--r-- | pluma/pluma-plugins-engine.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pluma/pluma-plugins-engine.c b/pluma/pluma-plugins-engine.c index 2c731514..1c8407a3 100644 --- a/pluma/pluma-plugins-engine.c +++ b/pluma/pluma-plugins-engine.c @@ -55,7 +55,6 @@ PlumaPluginsEngine *default_engine = NULL; static void pluma_plugins_engine_init (PlumaPluginsEngine *engine) { - gchar *private_path; GError *error = NULL; pluma_debug (DEBUG_PLUGINS); @@ -81,17 +80,14 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine) g_clear_error (&error); } - private_path = g_build_filename (LIBDIR, "girepository-1.0", NULL); - if (!g_irepository_require_private (g_irepository_get_default (), - private_path, "Pluma", "1.0", 0, &error)) + LIBDIR "/girepository-1.0", + "Pluma", "1.0", 0, &error)) { g_warning ("Could not load Pluma repository: %s", error->message); g_clear_error (&error); } - g_free (private_path); - peas_engine_add_search_path (PEAS_ENGINE (engine), pluma_dirs_get_user_plugins_dir (), pluma_dirs_get_user_plugins_dir ()); |