[gimp] app: in testing mode, load plug-ins without subdirectories again



commit abdd69640d843e5fe3d346f73a67587072eb1139
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 26 14:45:59 2018 +0200

    app: in testing mode, load plug-ins without subdirectories again
    
    Fixes the export test.

 app/plug-in/gimppluginmanager-restore.c | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/app/plug-in/gimppluginmanager-restore.c b/app/plug-in/gimppluginmanager-restore.c
index f856486353..c5bdc986ca 100644
--- a/app/plug-in/gimppluginmanager-restore.c
+++ b/app/plug-in/gimppluginmanager-restore.c
@@ -341,9 +341,21 @@ gimp_plug_in_manager_search_directory (GimpPlugInManager *manager,
             }
           else if (gimp_file_is_executable (child))
             {
-              g_printerr (_("Skipping potential plug-in '%s': "
-                            "plug-ins must be installed in subdirectories.\n"),
-                          g_file_peek_path (child));
+              if (g_getenv ("GIMP_TESTING_PLUGINDIRS"))
+                {
+                  guint64 mtime;
+
+                  mtime = g_file_info_get_attribute_uint64 (info,
+                                                            G_FILE_ATTRIBUTE_TIME_MODIFIED);
+
+                  gimp_plug_in_manager_add_from_file (manager, child, mtime);
+                }
+              else
+                {
+                  g_printerr (_("Skipping potential plug-in '%s': "
+                                "plug-ins must be installed in subdirectories.\n"),
+                              g_file_peek_path (child));
+                }
             }
           else
             {


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