wok-current view gtk+/stuff/stop-looking-for-modules-in-cwd.patch @ rev 25792
Fix openbox menu, label keymap on lxpanel and add miss it translation for tazpkg
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Oct 07 05:55:24 2025 +0000 (2 weeks ago) |
| parents | |
| children |
line source
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Matthias Clasen <mclasen@redhat.com>
3 Date: Sat, 15 Jun 2024 14:18:01 -0400
4 Subject: [PATCH] Stop looking for modules in cwd
6 This is just not a good idea. It is surprising, and can be misused.
8 Fixes: #6786
9 ---
10 gtk/gtkmodules.c | 9 ++-------
11 1 file changed, 2 insertions(+), 7 deletions(-)
13 diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
14 index 50729b61a590..c0f0c30a2148 100644
15 --- a/gtk/gtkmodules.c
16 +++ b/gtk/gtkmodules.c
17 @@ -229,13 +229,8 @@ find_module (const gchar *name)
18 gchar *module_name;
20 module_name = _gtk_find_module (name, "modules");
21 - if (!module_name)
22 - {
23 - /* As last resort, try loading without an absolute path (using system
24 - * library path)
25 - */
26 - module_name = g_module_build_path (NULL, name);
27 - }
28 + if (module_name == NULL)
29 + return NULL;
31 module = g_module_open (module_name, G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY);