[Bug]: JavaScript exception "spawn vlc ENOENT" when attempting to open video in VLC
Guidelines
- [x] I have encountered this bug in the latest release of FreeTube.
- [x] I have encountered this bug in the official downloads of FreeTube. The only official downloads are from the https://freetubeapp.io website, the FreeTubeApp/FreeTube GitHub repository and the io.freetubeapp.FreeTube flatpak from Flathub.
- [x] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
- [x] I have searched the documentation for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
- [x] I have read and agree to follow the rules.
Describe the bug
When attempting to open a video using VLC (External Player), FreeTube crashes and throws a JavaScript exception in the main process (spawn vlc ENOENT). This indicates that the application is unable to locate or execute the VLC binary/command.
Steps to Reproduce:
- Open FreeTube and navigate to any video.
- Attempt to play or open the video using the VLC / External Player option.
- A popup appears with the JavaScript error and the application fails to launch VLC.
Expected Behavior
FreeTube should successfully pass the video stream/URL to VLC and open the external player without throwing a JavaScript exception or crashing. If VLC is not installed or not found in the system PATH, the app should display a user-friendly error message rather than an uncaught JavaScript exception.
Issue Labels
accessibility issue
FreeTube Version
v0.25.0 Beta
Operating System Version
Windows 11
Installation Method
.exe
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
No response
Upload screenshots or videos
Screenshot 2026-07-18 234031.png
Additional Information
Error Message:
× Error
A JavaScript error occurred in the main process
Uncaught Exception:
Error: spawn vlc ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:287:19)
at onErrorNT (node:internal/child_process:508:16)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
### Nightly Build
- [ ] I have encountered this bug in the latest **official** [nightly build](https://docs.freetubeapp.io/development/nightly-builds), do not check this box if you are using an unofficial or custom build.
inquires regarding external players migrated to https://github.com/FreeTubeApp/FreeTube/discussions/7789