How can I make chrome (stop asking to be) the default browser?
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
.
found the solution:
When you get the question again, don’t press the button that makes Chrome the default browser, but click on the far right of the bar on the X to make the bar disappear. Big chance it won’t come back.
via a manjaro forum post
Here is a quick solution as worth as the one above I guess but different: Run in a terminal :
echo '# Disable set default browser
export CHROMIUM_FLAGS="$CHROMIUM_FLAGS --no-default-browser-check"' \
| sudo tee /etc/chromium.d/disable-set-default-browser
It will create a file that will launch Chromium without checking ... Very useful when the "don't ask again" question doesn't pop up :)