diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2021-01-05 14:36:48 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2021-01-05 14:36:48 +0300 |
commit | bb456385c8a975fa0faf652258923c0c033eaa7e (patch) | |
tree | 34c63e2b9a791b7fd15f0b91f6e30768cfa6bb7f /src/remmina_plugin_manager.c | |
parent | affd158deaafbe4b76796e5a80a837de8bef5bff (diff) |
Disabling Python support by default
- Added a compile switch -DWITH_PYTHON to enable/disable the Python support
- Mitigate #2379
Signed-off-by: Antenore Gatta <antenore@simbiosi.org>
Diffstat (limited to 'src/remmina_plugin_manager.c')
-rw-r--r-- | src/remmina_plugin_manager.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/remmina_plugin_manager.c b/src/remmina_plugin_manager.c index 3bdeb51d2..a1b713a81 100644 --- a/src/remmina_plugin_manager.c +++ b/src/remmina_plugin_manager.c @@ -54,7 +54,9 @@ #include "rcw.h" #include "remmina_plugin_manager.h" #include "remmina_plugin_native.h" +#ifdef WITH_PYTHONLIBS #include "remmina_plugin_python.h" +#endif #include "remmina_public.h" #include "remmina_masterthread_exec.h" #include "remmina/remmina_trace_calls.h" @@ -264,7 +266,11 @@ static void remmina_plugin_manager_load_plugin(const gchar *name) if (g_str_equal(G_MODULE_SUFFIX, ext)) { remmina_plugin_native_load(&remmina_plugin_manager_service, name); } else if (g_str_equal("py", ext)) { +#ifdef WITH_PYTHONLIBS remmina_plugin_python_load(&remmina_plugin_manager_service, name); +#else + REMMINA_DEBUG("Python support not compiled, cannot load Python plugins"); +#endif } else { g_print("%s: Skip unsupported file type '%s'\n", name, ext); } @@ -297,8 +303,10 @@ void remmina_plugin_manager_init() GSList *sple; remmina_plugin_table = g_ptr_array_new(); +#ifdef WITH_PYTHONLIBS remmina_plugin_python_init(); - +#endif + if (!g_module_supported()) { g_print("Dynamic loading of plugins is not supported on this platform!\n"); return; |