[NetworkManager-pptp/lr/gtk-4.0: 4/9] properties: remove NM_PLUGIN_DIR




commit d17c625af584168176310895cb17a96f40da3584
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Wed Nov 3 14:01:59 2021 +0100

    properties: remove NM_PLUGIN_DIR
    
    This does nothing, nm_vpn_plugin_utils_load_editor() is more than happy
    with a relative path.

 Makefile.am                        | 1 -
 properties/nm-pptp-editor-plugin.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3c819c9..5153d4b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -162,7 +162,6 @@ properties_libnm_vpn_plugin_pptp_la_CFLAGS = \
        $(LIBNM_CFLAGS)
 properties_libnm_vpn_plugin_pptp_la_CPPFLAGS = \
        -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_BASE \
-       -DNM_PLUGIN_DIR=\"$(NM_PLUGIN_DIR)\" \
        $(properties_cppflags)
 properties_libnm_vpn_plugin_pptp_la_LIBADD = \
        $(GLIB_LIBS) \
diff --git a/properties/nm-pptp-editor-plugin.c b/properties/nm-pptp-editor-plugin.c
index 01072df..664f9da 100644
--- a/properties/nm-pptp-editor-plugin.c
+++ b/properties/nm-pptp-editor-plugin.c
@@ -157,7 +157,7 @@ get_editor (NMVpnEditorPlugin *iface, NMConnection *connection, GError **error)
 #ifdef NM_VPN_OLD
                return nm_vpn_plugin_ui_widget_interface_new (connection, error);
 #else
-               return nm_vpn_plugin_utils_load_editor (NM_PLUGIN_DIR"/libnm-vpn-plugin-pptp-editor.so",
+               return nm_vpn_plugin_utils_load_editor ("libnm-vpn-plugin-pptp-editor.so",
                                                        "nm_vpn_editor_factory_pptp",
                                                        _call_editor_factory,
                                                        iface,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]