GNOME Bugzilla – Bug 724657
Scripts run by NM dispatcher don't have PATH environment variable set
Last modified: 2014-04-18 15:45:46 UTC
Scripts run by NM dispatcher don't have the PATH environment variable set, therefore they have to use full paths to binaries or set the PATH variable by themself. This is causing problems if some script is used on various distributions on which paths to the same binary may differ. It would make things much easier if scripts run by NM dispatcher had the PATH set accordingly to the system.
Was curious how systemd does that and learned that systemd session daemons pass the environment they're started in and the systemd system daemon passes an environment it builds itself up with a value of {/,/usr/,/usr/local/}{bin,sbin}. With NetworkManager, we can use either way and they are in fact equivalent on systems using systemd, as NetworkManager itself is being run from systemd with the static list of paths.
fixed in git master