[gnome-panel] module-manager: load only modules with so suffix



commit 9d881eb175754d2304c464bf3a9d8e0c910f71a3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 26 20:32:19 2020 +0200

    module-manager: load only modules with so suffix

 gnome-panel/gp-module-manager.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnome-panel/gp-module-manager.c b/gnome-panel/gp-module-manager.c
index 8179aeaf2..90df446bf 100644
--- a/gnome-panel/gp-module-manager.c
+++ b/gnome-panel/gp-module-manager.c
@@ -60,6 +60,9 @@ load_modules (GpModuleManager *manager)
       GpModule *module;
       const gchar *id;
 
+      if (!g_str_has_suffix (name, ".so"))
+        continue;
+
       path = g_build_filename (MODULESDIR, name, NULL);
       module = gp_module_new_from_path (path);
       g_free (path);


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