Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbhatman1441 <blackhat1441@protonmail.com>2023-03-10 17:12:36 +0300
committerbhatman1441 <blackhat1441@protonmail.com>2023-03-10 17:18:28 +0300
commitf81494b7090dea13531e36f1d3e8277798120e56 (patch)
tree919c52323a0e1edb35f7727e638ce5d72eb18665 /src
parent4aded3d3622c9f3c809296c87c33e03e8a19164d (diff)
Only remove local and lazy binding flags for python wrapper
Diffstat (limited to 'src')
-rw-r--r--src/remmina_plugin_native.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/remmina_plugin_native.c b/src/remmina_plugin_native.c
index 2238e5ec9..a5b9682e9 100644
--- a/src/remmina_plugin_native.c
+++ b/src/remmina_plugin_native.c
@@ -63,7 +63,13 @@ gboolean remmina_plugin_native_load(RemminaPluginService* service, const char* n
GModule* module;
RemminaPluginEntryFunc entry;
- module = g_module_open(name, 0);
+ //Python plugins cannot be lazy loaded, so hande their loading seperately
+ if (strstr(name, "remmina-plugin-python_wrapper") != NULL ){
+ module = g_module_open(name, 0);
+ }
+ else{
+ module = g_module_open(name, G_MODULE_BIND_LAZY | G_MODULE_BIND_LOCAL);
+ }
if (!module)
{