pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.92k stars 543 forks source link

Program "vlc" not found(Windows 10) #222

Closed Anarchyserver closed 2 years ago

Anarchyserver commented 2 years ago

im on windows 10 and am receiving this error even though vlc media player is installed in the recommended directory. im running git as admin aswell windows10vlcnotfound

Jasiri-w commented 2 years ago

Solution: Add VLC to PATH environment variable

Explanation

ani-cli requires the VLC.exe executable program file to be available from anywhere on the command line ( i.e. if you type in cmd or npm from any directory from the command line the program will run ).

Instructions

Therefore you need to add the line "C:\Program Files\VideoLAN\VLC" to the PATH. ( That file path is the default install location for VLC. In case yours is different, to find where yours is either right click a VLC shortcut and go to properties and look for the value labelled 'Start In' as your folder location or search for vlc.exe through explorer)

Method 1 The easiest way to add to PATH is through cmd. (however it is a bit dangerous as you could erase all of your variables by mistake)

  1. First type 'path' to see all the current path variables.
  2. Then type ' set path = %path%;C:\Program Files\VideoLAN\VLC ' Note: do not forget the '%%' around path as that signifies the variable, otherwise it will place a raw string. Its like typing x=x+1. The ';' between %path% and the 'C:' is also imperative, do not forget it as it signifies a new path string.

Method 2 You can add a new folder to path by searching for "Environment Variables" from the taskbar search box. An option called "edit environment variables" should appear. Select it and you should see a settings window appear. Select the "Environment variables" button at the bottom of the window. From the window that appears there are 2 distinct boxes, the lower one named "System variables" will have a row for "path": double click it. In this new window select "new" and copy paste the folder location "C:\Program Files\VideoLAN\VLC"

Note:You want the encapsulating folder path, not the ".exe"'s full file path Note:If you are unable to edit the variables in the bottom box, edit, in the same way, the path variable in the top box, but it will not be available to every user on the computer

Done! Enjoy your anime and remember...its ecchi, not hentai ;)

If you need another explanation here it is

Anarchyserver commented 2 years ago

either im doing it wrong or its not working, i tried both methods but still nothing

Rendevior commented 2 years ago

either im doing it wrong or its not working, i tried both methods but still nothing

Double check it.. Probably your VLC program installed in "C:/Program Files (x86)/VideoLAN/VLC