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



commit dfdf257457b37907c3dcdcb9f5675abe67d80c67
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Mar 26 20:39:59 2020 +0200

    applet-manager: load only modules with so suffix

 gnome-panel/libpanel-applet-private/gp-applet-manager.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gnome-panel/libpanel-applet-private/gp-applet-manager.c 
b/gnome-panel/libpanel-applet-private/gp-applet-manager.c
index bc7e68b46..d391d21d9 100644
--- a/gnome-panel/libpanel-applet-private/gp-applet-manager.c
+++ b/gnome-panel/libpanel-applet-private/gp-applet-manager.c
@@ -121,6 +121,9 @@ load_external_modules (GpAppletManager *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]