[gnome-builder] plugins: load plugins from ~/.local/share/gnome-builder/plugins/



commit 8458bef2596e0af09ecb6a6fda69eca0b5180433
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 20 22:58:40 2016 -0800

    plugins: load plugins from ~/.local/share/gnome-builder/plugins/

 libide/ide-application-plugins.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libide/ide-application-plugins.c b/libide/ide-application-plugins.c
index 192be81..2b283b8 100644
--- a/libide/ide-application-plugins.c
+++ b/libide/ide-application-plugins.c
@@ -61,6 +61,7 @@ ide_application_discover_plugins (IdeApplication *self)
 {
   PeasEngine *engine = peas_engine_get_default ();
   const GList *list;
+  gchar *path;
 
   g_return_if_fail (IDE_IS_APPLICATION (self));
 
@@ -80,8 +81,6 @@ ide_application_discover_plugins (IdeApplication *self)
 
           while ((name = g_dir_read_name (dir)))
             {
-              gchar *path;
-
               path = g_build_filename (BUILDDIR, "plugins", name, NULL);
               peas_engine_prepend_search_path (engine, path, path);
               g_free (path);
@@ -103,6 +102,10 @@ ide_application_discover_plugins (IdeApplication *self)
                                    "resource:///org/gnome/builder/plugins",
                                    "resource:///org/gnome/builder/plugins");
 
+  path = g_build_filename (g_get_user_data_dir (), "gnome-builder", "plugins", NULL);
+  peas_engine_prepend_search_path (engine, path, path);
+  g_free (path);
+
   peas_engine_rescan_plugins (engine);
 
   list = peas_engine_get_plugin_list (engine);


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