Since the Ubuntu 15.10 upgrade, google-chrome-stable keeps asking if it should be set as default browser, even though it already is. I tried to reinstall it, but that didn't help. Any ideas?
For the working fix, see the end of this answer.
INITIAL ANSWER Oct 28th 2015 (outdated fix)
Open the file
~/.config/google-chrome/Default/Preferences with a text editor.
Find the line
and replace it with
In my case, the file was >200k characters, for which reason gedit crashed a few times. If it is the same in your case, you probably want to use a terminal-based editor like vi.
Please note that this is a workaround, the problem itself has to be fixed by the Chrome developers.
UPDATE Nov 24th 2015
to raise attention. Thanks!
UPDATE Feb 20th 2016
As reported first by Ron Thompson and 3vi1 in the comment section; and finally confirmed by myself (using Ubuntu 15.10), this workaround doesn't seem to work anymore, at least not for everyone, after reinstalling google-chrome. Everybody who used this workaround should try to avoid reinstalling chrome.
I again encourage you to say that you are affected by the bug on launchpad (currently 302 people).
UPDATE April 5th 2016 (Working fix!)
To apply the fix, change line #198 in the file
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`"
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"
UPDATE July 25th 2016 (Working fix!)
Update to the proposed fix for (K)Ubuntu 16.04:
To apply the fix, change lines #177 and #202 in the file
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word"
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word | head -n 1`"
Then go to Google Chrome settings and set Chrome as default browser.
UPDATE Jun 1st 2017
If I read the report correctly, the issue was fixed in xdg-utils in xenial. Wily has been EOL for almost a year, so I am closing the bug.
no longer affects: chromium-browser no longer affects: google-chrome-beta (Ubuntu) no longer affects: google-chrome (Ubuntu) Changed in chromium-browser (Ubuntu): assignee: Chad Miller (cmiller) → nobody status: In Progress → Invalid Changed in xdg-utils (Ubuntu): assignee: Chad Miller (cmiller) → nobody status: Confirmed → Fix Released
This has been tracked down as a bug in XDG utilities, and it affects Chromium Browser, too.
See LP Bug #1509139.
I was having the same problem with 15.10. Each time I rebooted and started chrome it complained it was not the default browser even though settings details Default Applications shows it default for web. I noticed that firefox was default for photos, so set that to image viewer. After a total of one reboots chrome is no longer complaining. I should try a few more times before I claim this solved my problem but wanted to share the initial result if anyone is in the mode of trying things themselves.
protected by Community♦ Oct 24 '15 at 3:11
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?