1 2 3 4 5 6 7 | // Reset path as we cannot rely on the path from the host OS to
// make sense. The classic distribution may use any PATH that makes
// sense but we cannot assume it makes sense for the core snap
// layout. Note that the /usr/local directories are explicitly
// left out as they are not part of the core snap.
debug("resetting PATH to values in sync with core snap");
setenv("PATH", "/usr/sbin:/usr/bin:/sbin:/bin:/usr/games", 1);
|