[gnome-panel] applet-manager: load only modules with so suffix
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] applet-manager: load only modules with so suffix
- Date: Thu, 26 Mar 2020 18:40:35 +0000 (UTC)
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]