Move saving screenshots to the default folder to an IPC call#6636
Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom Jan 27, 2025
Merged
Move saving screenshots to the default folder to an IPC call#6636FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
Conversation
PikachuEXE
approved these changes
Jan 26, 2025
kommunarr
approved these changes
Jan 26, 2025
ChunkyProgrammer
approved these changes
Jan 27, 2025
SudharakaP
pushed a commit
to SudharakaP/FreeTube
that referenced
this pull request
Jan 28, 2025
PikachuEXE
added a commit
to PikachuEXE/FreeTube
that referenced
this pull request
Jan 29, 2025
* development: (35 commits) Shrink mime-db even further (FreeTubeApp#6659) * Update play next recommended video setting to be "by default" (FreeTubeApp#6400) Miscellaneous performance improvements (FreeTubeApp#6658) Bump stylelint in the stylelint group across 1 directory (FreeTubeApp#6660) Bump the stylelint group across 1 directory with 4 updates (FreeTubeApp#6605) Fixes FreeTubeApp#5476: Adjusted z-index for tooltips to avoid overlapping with bars (FreeTubeApp#6656) Bump shaka-player from 4.12.8 to 4.13.0 (FreeTubeApp#6649) Migrate ProfileSettings, FtProfileBubble and FtProfileEdit to the composition API (FreeTubeApp#6639) Translated using Weblate (Arabic) Bump the eslint group with 4 updates (FreeTubeApp#6645) Bump bgutils-js from 3.1.2 to 3.1.3 (FreeTubeApp#6650) Translated using Weblate (Arabic) Translated using Weblate (Arabic) Bump electron from 34.0.0 to 34.0.1 (FreeTubeApp#6648) Bump lefthook from 1.10.9 to 1.10.10 (FreeTubeApp#6647) Bump the babel group with 2 updates (FreeTubeApp#6644) Translated using Weblate (Arabic) Avoid logging an error when a player cache entry does not exist (FreeTubeApp#6640) Move saving screenshots to the default folder to an IPC call (FreeTubeApp#6636) Replace rimraf dev dependency with clean script (FreeTubeApp#6638) ...
1 task
OothecaPickle
added a commit
to OothecaPickle/FreeTube
that referenced
this pull request
Apr 29, 2025
…reeTubeApp#6636)" This reverts commit 829435e.
1 task
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.
Move saving screenshots to the default folder to an IPC call
Pull Request Type
Description
Currently the code for saving video screenshots to the default save location uses the Node.js
pathandfs/promisesmodules in the renderer processes. While it does work, it is one of the reasons that we currently have to havenodeIntegrationturned on in our renderer processes. This pull request moves it to an IPC call, which allows us to add a few security measures like making sure that IPC call can only write inside the users configured folder and gets us one step closer to turning offnodeIntegration.Just a reminder why having
nodeIntegrationturned on in the renderer is a bad idea. Having that turned on means that you can use any Node.js and Electron APIs in there, which is not ideal considering that we load data, including HTML, from third party sources and have the devtools enabled.P.S. I would recommend turning on the "Hide Whitespace" setting when reviewing this pull request.
Testing
Electronfolder instead of theFreeTubeone.screenshotFolderPathline from thesettings.db file.yarn dev.Desktop