Tyrrrz / YoutubeDownloader

Downloads videos and playlists from YouTube
MIT License
8.7k stars 1.19k forks source link

Look for FFmpeg in both user-wide and system-wide `PATH` locations #495

Closed zandiarash closed 4 weeks ago

zandiarash commented 1 month ago

Environment.GetEnvironmentVariable("PATH") gives you the effective PATH that the operating system uses when searching for executable files from User PATH. Thus if some developers like me add FFMPEG path to system PATH they always face with that page which tells there is no FFMPEGinstalled or cannot be found. I had changed codes to get the PATH from both the System and User environment variables.