7

I've configured an external handler for telnet:// links following these instructions. It works great, but every time I click on a click chrome asks me:

Open xdg-open? http://<site i am browsing> wants to open this application

I would like telnet links to Just Work without the intervening prompt. How do I tell chrome to launch the external handler without prompting?

[NB: I'm running Chrome on Linux]

larsks
  • 4,053
  • 28
  • 36
  • See if this helps>>>>https://support.google.com/chrome/a/thread/3859524?hl=en – Moab Feb 10 '20 at 15:26
  • 2
    @Moab Thanks for the pointer! Adding `URLWhitelist: ["telnet://*"]` to the policy makes things work as I want, although it's odd that's at the policy level and not the user level. – larsks Feb 10 '20 at 16:49
  • glad you resolved it. – Moab Feb 10 '20 at 18:05
  • It's _very_ odd to be at the policy level, since it's something I can configure for _my_ company, that will actually be effective on my _client's_ computer (when I'm using their hardware)! – Auspex Mar 10 '20 at 10:44
  • 1
    You can also enable the "Always open these types of links in the associated app" checkbox, and then check it once: https://superuser.com/questions/1481851/disable-chrome-to-ask-for-confirmation-to-open-external-application-everytime – EM0 May 18 '20 at 16:27

1 Answers1

0

Solution in comment worked for me aswell. I'll post it.


Create following path and file:

sudo mkdir -p /etc/opt/chrome/policies/managed/
sudo touch /etc/opt/chrome/policies/managed/managed_policies.json

Open permissions for this file:

sudo chmod -R 775 /etc/opt/chrome/policies/managed

By default adding following content to this file should add the checkbox to remember your choice:

{
    "ExternalProtocolDialogShowAlwaysOpenCheckbox": true
}

This worked for all external website for me. For custom link (like telnet://* in the question), you may need to add those links to the whitelist:

{
    "ExternalProtocolDialogShowAlwaysOpenCheckbox": true,
    "URLWhitelist": [
        "telnet://*"
    ]
}
Kevin Lemaire
  • 209
  • 2
  • 10