[network-manager-fortisslvpn] helper: make it possible to make helper speak to a different bus
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-fortisslvpn] helper: make it possible to make helper speak to a different bus
- Date: Fri, 23 Oct 2015 13:04:53 +0000 (UTC)
commit b2ff013e818db1f22dbd09e7304ad22546e1a0b5
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Wed Oct 14 19:04:22 2015 +0200
helper: make it possible to make helper speak to a different bus
src/nm-fortisslvpn-pppd-plugin.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-fortisslvpn-pppd-plugin.c b/src/nm-fortisslvpn-pppd-plugin.c
index cee2642..1804ffb 100644
--- a/src/nm-fortisslvpn-pppd-plugin.c
+++ b/src/nm-fortisslvpn-pppd-plugin.c
@@ -299,17 +299,22 @@ int
plugin_init (void)
{
GError *err = NULL;
+ const char *bus_name;
#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
#endif
+ bus_name = getenv ("NM_DBUS_SERVICE_FORTISSLVPN");
+ if (!bus_name)
+ bus_name = NM_DBUS_SERVICE_FORTISSLVPN;
+
g_message ("nm-fortisslvpn-ppp-plugin: (%s): initializing", __func__);
proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,
NULL,
- NM_DBUS_SERVICE_FORTISSLVPN,
+ bus_name,
NM_DBUS_PATH_FORTISSLVPN_PPP,
NM_DBUS_INTERFACE_FORTISSLVPN_PPP,
NULL, &err);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]