For Chromium, when I choose "Don't ask again", Chromium stores the following setting in my ~/.config/chromium/Profile 1/Preferences
file:
{
"alternate_error_pages": {
"enabled": false
},
"apps": {
"shortcuts_have_been_created": true
},
"autofill": {
"negative_upload_rate": 1.0,
"positive_upload_rate": 1.0
},
"bookmark_bar": {
"show_on_all_tabs": true
},
"bookmark_editor": {
"expanded_nodes": [ "1" ]
},
"browser": {
"check_default_browser": false,
[...]
For standard Google Chrome:
- Close Chrome.
- In Terminal, paste
open ~/Library/Application Support/Google/Chrome/Default/Preferences
(and then hit enter)
- search for
"browser":{
and replace it with "browser":{"check_default_browser":false,
When you start chrome back up it shouldn't prompt you anymore.
Note:
The preferences setting seems to differ substantially between chrome versions. On Chrome-78.0 the setting
"browser":{"default_browser_infobar_last_declined":"13236762067983049"}
seems to work. I assume it simulates clicking the x
.
For users of i3wm, in addition to editing ~/.config/mimeapps.list
and ~/.i3/config
, you also need to change $BROWSER
from ~/.profile
, set it to /usr/bin/chromium
, to prevent browser sessions emerging from the terminal from opening the wrong browser.
Best Answer
I'm going to guess the following
xdg-open http://google.com
it'll open with ChromiumSo my suggested answer is:
(and ditto for https)