Add Protocol Handler to Settings
-
When trying to diagnosis why Roblox's protocol wasn't being recognized (within Vivaldi) I realized there is no way to add custom handlers.
-
I just realized that protocol handler is also needed for things like webmail management for mailto links.
For example, inbox.google.com or gmail.com offer to register themself as the default handler for mailto links, but only when visited using Chrome for the moment, not working with Vivaldi.
It would be be super useful to be able to click on a mailto: link and be redirected to our usual webmail! Ex: this or this.It should be more that a setting though, but a symbol appearing in the url bar (like Chrome) when such handler management is requested by a site.
If you want to get more votes on this:
I suggest to rename this post so that users have a concrete example of what this means, and mailto links may be the easiest and most common way for that
Maybe "Add Protocol Handler to Settings (needed for mailto: redirection to webmail)" ? -
@guilimote Do you know how to get more attention on this post?
I really need this feature for setting inbox.google.com as my mailto handler. -
some changes can be done with
chrome://settings/handlers
but a native function will be better -
@hadden89 but how to add a handler there?
-
-
@burnout426 but that is a windows solution, not a Mac solution.
Anyone know a workaround for Mac, to set the mailto handler to Vivaldi, instead of another browser??
It might be good to change the Title of this Post, to be: Add Mailto Handler Functionality.
This is my only real big complaint with Vivaldi. I can't even change the mail handler to be the built in Webmail that Vivaldi has launched. So why not add this feature?? Let's get more upvotes....
-
@justintaylor said in Add Protocol Handler to Settings:
I can't even change the mail handler to be the built in Webmail that Vivaldi has launched.
You can do this manually for Vivaldi. It should work on Linux and Mac too.
You have to add the following JSON to the root object in Vivaldi's preferences file.
custom_handlers: { "enabled" : true, "ignored_protocol_handlers" : [], "registered_protocol_handlers" : [ { "default" : true, "protocol" : "mailto", "url" : "https://mail.vivaldi.net/webmail/?_task=mail&_action=compose&_to=%s" } ] }
Then, start Vivaldi, goto
chrome://settings/handlers
to see the mail.vivaldi.net handler, click the 3 dots next to it and choose "set as default". Then, clicking on links on web pages in Vivaldi should open mail.vivaldi.net.That might even do something on Mac to handle mailto links outside of Opera. If not though, you'd have to research how to set the program of your choice as the default mail client on Mac. Then, even mailto links outside of Vivaldi should launch Vivaldi and goto mail.vivaldi.net.
Of course, we still shouldn't have to jump through hoops to do this, especially when mail.vivaldi.net has a register link in "settings -> User Interface -> Browser Options".
-
Steam protocol handling is also related to this request (or any other basically)
https://forum.vivaldi.net/topic/32223/associate-steam-protocol-steam-with-linux-steam-client -
@burnout426 Does your code open an email, in Vivaldi mail, with the email address in the 'To' field? Whether or not, might I be able to use Gmail by changing the 'url' line to:
"url" : "https://mail.google.com/mail/?mailto=%s"
-
@LAPIII said in Add Protocol Handler to Settings:
@burnout426 Does your code open an email, in Vivaldi mail, with the email address in the 'To' field? Whether or not, might I be able to use Gmail by changing the 'url' line to:
"url" : "https://mail.google.com/mail/?mailto=%s"
Yes and yes.
-
@burnout426 Hi, thanks fo the effort. I opened the preference file on linux and did not find keywords like root object, or handler. So I am not sure where to add the text without breaking it. Made a backup of the file though. Could you kindly elaborate?
-
@Calli04 The following works, after restarting Vivaldi the preferences file had moved it to in between countryid_at_install and data_reduction
"custom_handlers":{"enabled":true,"ignored_protocol_handlers":[], "registered_protocol_handlers":[{"default":true,"protocol":"mailto", "url":"https://mail.google.com/mail/?view=cm&fs=1&extsrc=mailto&url=%s"}]}
Like this:
"countryid_at_install":12345,"custom_handlers":{"enabled":true,"ignored_protocol_handlers":[],"registered_protocol_handlers":[{"default":true,"protocol":"mailto","url":"https://mail.google.com/mail/?view=cm&fs=1&extsrc=mailto&url=%s"}]},"data_reduction"
-
@nickbrake
Hi Nick, cheers, it worked as described after I firstly destroyed my preferences with a link to another mail service, but I was doing it on my testing device anyway.
It worked with Posteo:
https://posteo.de/webmail/?_task=mail&_action=compose&_to=%s
It did not work with mailbox.org, who seem to offer that functionality only for firefox. There the link hast this format, but this doesn't work in chrome either.https://office.mailbox.org/appsuite/#app=io.ox/mail/compose/main:compose&mailto=%s
The main goal I could not reach, because in Ubuntu there is not connection from the default mail handler to the mail handler in the default browser, which I was hoping to set up by this.
-
@Calli04 What had me stuck for a bit was the data in %s which seems not to be the expected data for a standard "mailto="... Not sure where I found it, but it required "&extsrc=mailto&url=%s" instead of "mailto=%s". The %s actually has mailto=_____ in it. Maybe something similar is supported with Posteo or Mailbox.
-
@nickbrake Thank you! Your solution works! Just a heads up: when editing the Preferences file make sure Vivaldi is not running
-
Nice forum, I gain good knowledge in this forum. Thank you for all your comments and suggestions. I actually work on it this is very helpful to me. Good job keep posting
-
@nickbrake Thanks, this worked for me on Linux.
As others have said, shut down Vivaldi first, and ideally make a backup of the file before editing it.
If anyone else is looking for it, the file location was ~/.config/vivaldi/Default/Preferences -
This post is deleted! -
Does this work on a Mac? Where is the file that needs to be edited?
Thanks!