FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.63k stars 861 forks source link

[Bug]: Cannot open video in external player (VLC) #6176

Closed MStankiewiczOfficial closed 4 days ago

MStankiewiczOfficial commented 5 days ago

Guidelines

Describe the bug

The default external player is set to VLC.

  1. Open any video in PT
  2. Click Open in vlc
  3. An error appears: A JavaScript error occurred in the main process. Uncaught Exception: Error: spawn vlc ENOENT at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Expected Behavior

The VLC player should open.

Issue Labels

content not loading, inconsistent behavior, visual bug

FreeTube Version

0.22.0

Operating System Version

macOS Sequoia 15.1 (24B83)

Installation Method

.dmg

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

absidue commented 4 days ago

It sounds like you didn't configure the path to the VLC binary in FreeTube's external player settings which is why FreeTube is failing to launch it.

MStankiewiczOfficial commented 4 days ago

I added it, but there is still the same error. A JavaScript error occurred in the main process. Uncaught Exception:
Error: spawn /Applications/VLC.app EACCES at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

absidue commented 4 days ago

As mentioned in my message above you need to specify the path to the actual binary, /Applications/VLC.app is a folder. FreeTube trusts that your input is correct, it doesn't do all the extra magic that macOS does to treat the folder as an app.