Re: [PATCH] vpn-manager: respect NM_VPN_PLUGIN_DIR



Thomas Haller <thaller redhat com> writes:

On Wed, 2019-07-17 at 11:46 +0200, Jelle Licht wrote:
[snip]
But the daemon runs as root, so setting NM_VPN_PLUGIN_DIR requires you
to become root, to restart the daemon, and to set the environment
variable (in the systemd service file). At that point, you could just
as well copy the .name file to /usr/lib/NetworkManager/VPN. Why is that
not sufficient?

As you say, we do set NM_VPN_PLUGIN_DIR for our networkmanager daemon.
I was trying to have networkmanager vpn plugins simply work for Guix
System, which does not follow FHS. As such, there is no `/usr/lib` to
speak of, or any of the other default locations networkmanager looks in.

Put another way, do you know of a way to pass vpn plugin locations to NM
at runtime?

+    file = g_file_new_for_path (conf_dir_user);
+    priv->monitor_etc = g_file_monitor_directory (file,
G_FILE_MONITOR_NONE, NULL, NULL);
+    g_object_unref (file);
+    if (priv->monitor_etc) {

btw, you cannot overwrite the existing monitor_etc and monitor_id_etc
fields. It would require new ones...
Thanks for explaining this.

- Jelle


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