-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setting for opening freetube:// links in new window #6242
base: development
Are you sure you want to change the base?
Conversation
Are you talking about https://www.electronjs.org/docs/latest/tutorial/launch-app-from-url-in-another-app#overview ? Also I am not sure how/if the doc mentions deep links and if users understand what is |
Yes.
I agree, but I wasn't sure what else to name it. Do you have any suggestions? |
I found one place mentioning extensions but not sure how to call it It shouldn't be called "YouTube links" on the preference coz there are many "YT" links in video description/comment etc. Inviting more members to comment on this |
In Android land these are called "Intents" rather than "Links". But tbh I'd be sad if this feature is blocked on a label :D |
Pull request was converted to draft
@@ -260,7 +260,7 @@ function runApp() { | |||
|
|||
const url = getLinkUrl(commandLine) | |||
if (url) { | |||
mainWindow.webContents.send(IpcChannels.OPEN_URL, url) | |||
mainWindow.webContents.send(IpcChannels.OPEN_URL, { url: url, isLaunchLink: false }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use two separate parameters instead of using a single parameter with an object, that lets you avoid the destructuring on the other end.
Add setting for opening freetube:// links in new window
Pull Request Type
Related issue
closes #1501
also relates to #6237
Description
Adds a toggle under General Settings to open
freetube://
links in a new window rather than replacing the contents of an existing window.Screenshots
Testing
Test that
freetube://
links opened from other applications are opened in a new window when the added setting is toggled on.Desktop
&
Additional context
I used some code from @pakoito's #5592.