loading...

How to Restore "Always open link checkbox" in Chrome 77+

jdoss profile image Joe Doss ・2 min read

I am in the process of setting up my workstation on my new Thinkpad T495 for work and I noticed on every Zoom or Slack link that opened in Chrome it would prompt with an xdg-open dialog box.

Always open links of this type in the associated app is missing!

This is pretty annoying! I just want it to open up the external Linux application automatically. This dialog box used to have a check box where you could just accept this action and always open this link in the correct app.

It turns out the they removed this check box in Chrome 77+. What a bummer! If you have an older Chrome profile that was made with a version below Chrome 77, and you already checked this box, you would have never known they removed it.

After some digging, I found a documentation site for an Org-mode plugin(?) that shows how to add this checkbox back into Chrome. You can use Managed Policies to add the ​External​Protocol​Dialog​Show​Always​Open​Checkbox Chrome Enterprise Policy to re-enable this checkbox.

TL;DR

If you don't want to read the above links, you can quickly do the following:

Linux

sudo mkdir -p /etc/opt/chrome/policies/managed/
sudo tee /etc/opt/chrome/policies/managed/external_protocol_dialog.json >/dev/null <<'EOF'
{
  "ExternalProtocolDialogShowAlwaysOpenCheckbox": true
}
EOF
sudo chmod 644 /etc/opt/chrome/policies/managed/external_protocol_dialog.json

OS X

defaults write com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox -bool true

After setting the above for your respective OS, you will need to restart Chrome. Then open the link that wants to open an external application and you will get prompted with the dialog box again, but with a Always open links of this type in the associated app checkbox!

Always open links of this type in the associated app re-enabled

Just check that box and you will never see this prompt again for the application! Wooo!!

Posted on by:

jdoss profile

Joe Doss

@jdoss

Fedora Linux user. Passionate about enabling others to improve their lives with Open Source Software.

Discussion

markdown guide
 

Having problems getting this to work in zsh...

 

Thanks, It was really annoying

 

I really like the org-mode plugin part!

 

I have a slightly offtopic question (but related to chrome). Is thete any way to make chrome show a warning box on multiple closing of tabs (accedently clicking on the main window close button) like Firefox have?