On Thu, 2019-07-18 at 13:27 +0200, Jelle Licht wrote:
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?
Hi, Hm. /usr/lib/NetworkManager/VPN is relevant to all the VPN plugins in your system. So, even if you don't use /usr/lib, then all plugins still need to agree on one location where to place their .name files? Or how is this supposed to work on Guix? At that point, can you not patch NetworkManager source to look at the right place? Possibly we could add a configure option to make that easier. Thomas
Attachment:
signature.asc
Description: This is a digitally signed message part