Repository navigation
Move external player handling to the main process - #8416
Merged
FreeTubeBot merged 1 commit intoDec 15, 2025
Merged
Conversation
absidue
requested review from
a user,
MarmadileManteater,
PikachuEXE,
efb4f5ff-1298-471a-8973-3d47447115dc and
kommunarr
December 14, 2025 13:17
FreeTubeBot
enabled auto-merge (squash)
December 14, 2025 13:17
efb4f5ff-1298-471a-8973-3d47447115dc
approved these changes
Dec 14, 2025
PikachuEXE
approved these changes
Dec 15, 2025
ghost
approved these changes
Dec 15, 2025
PikachuEXE
added a commit
to PikachuEXE/FreeTube
that referenced
this pull request
Dec 18, 2025
* development: (62 commits) Support exporting single playlists in YouTube's CSV format (FreeTubeApp#8430) Move external player handling to the main process (FreeTubeApp#8416) Revert "[Bug fix] Set max-block-size to prevent thin videos from passing the …" (FreeTubeApp#8418) Migrate the App component to the composition API (FreeTubeApp#8417) Bump electron-builder from 26.3.5 to 26.3.6 (FreeTubeApp#8422) Bump css-minimizer-webpack-plugin from 7.0.3 to 7.0.4 (FreeTubeApp#8428) Bump the eslint group with 3 updates (FreeTubeApp#8420) Bump sass from 1.94.2 to 1.96.0 (FreeTubeApp#8429) Bump vue-router from 4.6.3 to 4.6.4 (FreeTubeApp#8425) Bump peter-evans/create-pull-request from 7 to 8 (FreeTubeApp#8423) Bump mikefarah/yq from 4.49.2 to 4.50.1 (FreeTubeApp#8427) Bump lefthook from 2.0.8 to 2.0.11 (FreeTubeApp#8426) Bump electron from 39.2.6 to 39.2.7 (FreeTubeApp#8421) Bump actions/upload-artifact from 5 to 6 (FreeTubeApp#8424) Translated using Weblate (Russian) Translated using Weblate (Bulgarian) Translated using Weblate (German) Translated using Weblate (Indonesian) Translated using Weblate (Portuguese (Brazil)) Translated using Weblate (Japanese) ...
PikachuEXE
added a commit
to PikachuEXE/FreeTube
that referenced
this pull request
Dec 21, 2025
* development: (62 commits) Support exporting single playlists in YouTube's CSV format (FreeTubeApp#8430) Move external player handling to the main process (FreeTubeApp#8416) Revert "[Bug fix] Set max-block-size to prevent thin videos from passing the …" (FreeTubeApp#8418) Migrate the App component to the composition API (FreeTubeApp#8417) Bump electron-builder from 26.3.5 to 26.3.6 (FreeTubeApp#8422) Bump css-minimizer-webpack-plugin from 7.0.3 to 7.0.4 (FreeTubeApp#8428) Bump the eslint group with 3 updates (FreeTubeApp#8420) Bump sass from 1.94.2 to 1.96.0 (FreeTubeApp#8429) Bump vue-router from 4.6.3 to 4.6.4 (FreeTubeApp#8425) Bump peter-evans/create-pull-request from 7 to 8 (FreeTubeApp#8423) Bump mikefarah/yq from 4.49.2 to 4.50.1 (FreeTubeApp#8427) Bump lefthook from 2.0.8 to 2.0.11 (FreeTubeApp#8426) Bump electron from 39.2.6 to 39.2.7 (FreeTubeApp#8421) Bump actions/upload-artifact from 5 to 6 (FreeTubeApp#8424) Translated using Weblate (Russian) Translated using Weblate (Bulgarian) Translated using Weblate (German) Translated using Weblate (Indonesian) Translated using Weblate (Portuguese (Brazil)) Translated using Weblate (Japanese) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Type
Description
This pull request moves the external player command construction to the main process, this allows us to add more validation and security checks to prevent abuse.
List of changes:
Testing
Test that opening the external player by clicking on a button or with the default viewing mode set to external player still works correctly.
Try programmatically triggering the external player IPC call through the dev tools
window.ftElectron.openInExternalPlayer({ videoID: '12345678911' }), it should do nothing/fail silently if you try it.If you don't have an external player installed you can choose any one in the external player settings and replace lines 187 and 188 in
src/main/externalPlayer.jswithconsole.log(executable, args), you'll also need to uncomment line 75 in_scripts/dev-runner.jsif you are running in dev mode.Desktop