payonel / ocvm

OpenComputer Emulator
41 stars 7 forks source link

component/internet: Let Linux find wget using PATH instead of hard-coding it to /usr/bin/wget #29

Closed AmandaCameron closed 5 years ago

AmandaCameron commented 5 years ago

Just another step in my line of stuff to change so that it works in NixOS better.

This makes it so that the internet component doesn't use a hard-coded path to wget, by switching from execv to execvp which will search the PATH environment variable. This allows wget to be in any place, not just the usual one, including allowing users to override it to MITM stuff / mock it locally if they so wish.