Shows "Chromium isn't your default browser" since 15.10.

Bug #1509139 reported by Alex N. on 2015-10-23
This bug affects 478 people
Affects Status Importance Assigned to Milestone
Xdg-utils
Confirmed
Medium
chromium-browser (Ubuntu)
Undecided
Unassigned
xdg-utils (Ubuntu)
High
Unassigned

Bug Description

Since the 15.10. upgrade Chromium shows on every launch "Chromium isn't your default browser", even when i select "Set as default" or "Don't ask again".

Chromium is set as default application for "Web" at System Settings -> Details -> Default Applications.

Version 45.0.2454.101 Ubuntu 15.10 (64-bit)

Alex N. (a-nox) on 2015-10-23
summary: - Shows "Chromium isn't your default browser" since 15.10
+ Shows "Chromium isn't your default browser" since 15.10.
description: updated
description: updated
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Chad Miller (cmiller) on 2015-10-23
Changed in chromium-browser (Ubuntu):
assignee: nobody → Chad Miller (cmiller)
Saikrishna Arcot (saiarcot895) wrote :

Same on KDE, so this is DE-independent.

Chad Miller (cmiller) wrote :

The problem is that the XDG utilities aren't written very well. If you have more that one action in a "desktop" file (as we do, for "new temporary profile" and "open an incognito window"), then it doesn't count desktop files right. I fixed upstream XDG, but need to include a local copy that we always use until it's fixed everywhere.

Robert Orzanna (orschiro) wrote :

Dear Chad,

Thanks for the fix!

> I fixed upstream XDG, but need to include a local copy that we always use until it's fixed everywhere.

What does this mean for the user? Does the user need to do anything other than waiting for the update?

Thankfully,

~ Robert

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdg-utils (Ubuntu):
status: New → Confirmed
atti (spamtub) wrote :

same on Lubuntu 15.10 (64bit)
Chrome Version 46.0.2490.86 (64-bit)

Alex N. (a-nox) wrote :

Problem was fixed for me after resetting my unity settings.

Robert Orzanna (orschiro) wrote :

Dear Alex,

Can you please describe briefly how you reset the unity settings?

Thankfully,

~ Robert

Alex N. (a-nox) wrote :

i should be more precise, i reset my gnome settings like this:
cd ~
rm -rf .gnome .gnome2 .gconf .gconfd .metacity

Robert Orzanna (orschiro) wrote :

Dear Alex,

Thanks for sharing! I thought there was a GUI setting somewhere that I had missed. :)

~ Robert

Alex N. (a-nox) wrote :

But beware, the above command will delete configuration files and you might have to reconfigure a lot of settings!

NicDumZ (nicdumz) wrote :

Would there be a way to provide a less destructive workaround than #9?

Everyone experiencing this, please paste the result of this in a terminal:

$ apt-cache policy xdg-utils; grep http ~/.config/mimeapps.list
~/.local/share/applications/mimeapps.list

On Tue, Nov 24, 2015 at 2:41 AM, NicDumZ <email address hidden> wrote:

> Would there be a way to provide a less destructive workaround than #9?
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1509139
>
> Title:
> Shows "Chromium isn't your default browser" since 15.10.
>
> Status in chromium-browser package in Ubuntu:
> Confirmed
> Status in xdg-utils package in Ubuntu:
> Confirmed
>
> Bug description:
> Since the 15.10. upgrade Chromium shows on every launch "Chromium
> isn't your default browser", even when i select "Set as default" or
> "Don't ask again".
>
> Chromium is set as default application for "Web" at System Settings ->
> Details -> Default Applications.
>
> Version 45.0.2454.101 Ubuntu 15.10 (64-bit)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1509139/+subscriptions
>

$ apt-cache policy xdg-utils; grep http ~/.config/mimeapps.list
xdg-utils:
  Installed: 1.1.0~rc3+git20150907-1ubuntu2
  Candidate: 1.1.0~rc3+git20150907-1ubuntu2
  Version table:
 *** 1.1.0~rc3+git20150907-1ubuntu2 0
        500 http://gb.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
grep: /home/xxxxx/.config/mimeapps.list: No such file or directory

NB I stopped reminders and don't get them but I cannot make Chromium the default browser in Chromium Settings

Alex N. (a-nox) wrote :

watch the newline, the testing command should be: "apt-cache policy xdg-utils; grep http ~/.config/mimeapps.list ~/.local/share/applications/mimeapps.list"

i dont experience this anymore, but here is my output anyway:

$ apt-cache policy xdg-utils; grep http ~/.config/mimeapps.list ~/.local/share/applications/mimeapps.list
xdg-utils:
  Installed: 1.1.0~rc3+git20150907-1ubuntu2
  Candidate: 1.1.0~rc3+git20150907-1ubuntu2
  Version table:
 *** 1.1.0~rc3+git20150907-1ubuntu2 0
        500 http://ftp.halifax.rwth-aachen.de/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
/home/xxx/.local/share/applications/mimeapps.list:x-scheme-handler/http=chromium-browser.desktop
/home/xxx/.local/share/applications/mimeapps.list:x-scheme-handler/https=chromium-browser.desktop
/home/xxx/.local/share/applications/mimeapps.list:x-scheme-handler/https=chromium-browser.desktop;

I am experiencing this issue (Swedish package repositories):

$ apt-cache policy xdg-utils; grep http ~/.config/mimeapps.list ~/.local/share/applications/mimeapps.list
xdg-utils:
  Installed: 1.1.0~rc3+git20150907-1ubuntu2
  Candidate: 1.1.0~rc3+git20150907-1ubuntu2
  Version table:
 *** 1.1.0~rc3+git20150907-1ubuntu2 0
        500 http://ftp.lysator.liu.se/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
/home/xxx/.local/share/applications/mimeapps.list:x-scheme-handler/http=google-chrome.desktop
/home/xxx/.local/share/applications/mimeapps.list:x-scheme-handler/https=google-chrome.desktop

Chad Miller (cmiller) wrote :

Thanks, all. I have enough information now.

Changed in xdg-utils (Ubuntu):
assignee: nobody → Chad Miller (cmiller)
importance: Undecided → High
Alex N. (a-nox) wrote :

The suggested workaround disables the default browser check in Chrome. I think we should wait for a fix and not disable a useful feature.

Yes, but until we have a fix, this removes the annoying message. That's why I said "temporary workaround".

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in google-chrome (Ubuntu):
status: New → Confirmed
Boris Aranovich (nomaed) wrote :

Happens on 14.04.01 as well, and has been happening for a while.

Ron (shinazueli) wrote :

The workaround at #19 does not work. You can edit the text file all day but as as soon as google-chrome starts up if overwrites the setting you just changed. 15.10.

I can confirm what Ron says in #24. The workaround does not work with the current chrome stable release - it gets overwritten back to true shortly after restarting the browser (change was made after closing chrome).

I can confirm that to. It used to work, and seems to continue to work if you don't reinstall chrome, but if you do, it automatically changes back to "true".

Btw, is there anything happening here at all?

radoslaw (radoslaw-cz) wrote :

Any working workaround?

John (johnernaut) wrote :

I'm having this exact issue as well.

Tony (l-tony-w) wrote :

I am hitting this issue too on a fresh 15.10 install, exactly as everyone else has described. This really needs to be triaged and looked at IMHO, although not a major issue it is a pretty poor experience.

Dave Lyon (tuxrocket) wrote :

Same here.

Gustav Ekner (gustav-ekner) wrote :

This seems to be fixed here: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1511154. But only for Xenial. Can it be patched to wily and other affected versions of Ubuntu?

Nikita Unkovsky (niihelium) wrote :

Chrome not only showing this notification, it also can't change default browser to itself.

Tim Nolte (tim-nolte) wrote :

Same as everyone else.

Ryan Lux (alphalux) wrote :

Gustav is correct. Editing the file /usr/bin/xdg-settings as described in the bug report has fixed the problem for me in 15.10. Perhaps this will help someone at least eliminate the annoyance for now.

The offending line for me is line #198
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//'`"

rectified to:
command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"

After making this change, you can set the default browser within the Chrome settings as Nikita mentioned, and it will succeed.

Richard (rpbaptist) wrote :

I can confirm this worked for me. Thanks!

Mario Beauchamp (k-mario-t) wrote :

This has also worked for me. Thank you!!

Brandon Taylor (dmn2004404) wrote :

Fix has been proposed, but not yet committed.

Changed in chromium-browser (Ubuntu):
status: Confirmed → In Progress
Alan Hoyle (alanh) wrote :

#34 appears to have fixed it for me as well.

tdtrung17693 (trungsuper) wrote :

#34 worked for me too. Thanks!!

Leo Iz (leo2002b) wrote :

#34 fixed the problem. Thank you Ryan Lux!

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in google-chrome-beta (Ubuntu):
status: New → Confirmed
Zachary Rash (zcrash) wrote :

#34 fixes the issue for me as well. Thanks for the workaround.

Ross McLean (gast0r) wrote :

Unfortunately #34 did not fix this for me. It seems it's worked for everyone else perfectly, so I'm a little confused.

Brandon Taylor (dmn2004404) wrote :

Works in Ubuntu but not Linux Mint.

Dany (wonder) wrote :

#34 not works in Linux Mint (the line 198 is not the same).

Also, I try with:
change lines #177 and #202 in the file /usr/bin/xdg-settings from

command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word`"

to

command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word | head -n 1`"

But also, not works in Linux Mint (18 KDE).

Lehel (gladia2r) wrote :

FYI, I made this work in Linux Mint 18 KDE by replacing the following line in /usr/bin/xdg-mime

 1000 # KTRADER=`which ktraderclient${KDE_SESSION_VERSION} 2> /dev/null`
 1001 KTRADER=`which ktraderclient 2> /dev/null`

It likely has to do with Plasma 5 and some greps.

 $ ktraderclient5 -v
ktraderclient 5.6.5

 $ ktraderclient -v
Qt: 4.8.7
KDE Development Platform: 4.14.16
KTraderClient: 0.0

Chromimum was able to set itself default after the change, and wont complain any more.

I see open Bug ref. with xdg-utils: https://bugs.freedesktop.org/show_bug.cgi?id=98562 (hopefully they'll fix this for good some time)

Changed in xdg-utils:
importance: Unknown → Medium
status: Unknown → Confirmed
leross (ross-moussouni) wrote :

xdg-utils:
  Installed: 1.1.0~rc3+git20150907-1ubuntu2
  Candidate: 1.1.0~rc3+git20150907-1ubuntu2
  Version table:
 *** 1.1.0~rc3+git20150907-1ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop;

rtimai (rtimai) wrote :

Chad, I don't agree that "the XDG utilities aren't written very well." The problem is that there's little agreement between both applications and platforms on how defaults are detected, and the script is doing its best to accommodate all the scenarios that cause issues. I believe I have tried EVERY fix (short of installing testing versions from PPAs of XDG-utils and Chromium) and Chromium STILL doesn't know that it's the default browser.

~$ apt-cache policy xdg-utils; grep http ~/.config/mimeapps.list ~/.local/share/applications/mimeapps.list
xdg-utils:
  Installed: 1.1.0~rc1+git20111210-7.4
  Candidate: 1.1.0~rc1+git20111210-7.4
  Version table:
 *** 1.1.0~rc1+git20111210-7.4 0
        500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status
/home/USERNAME/.local/share/applications/mimeapps.list:x-scheme-handler/http=chromium.desktop
/home/USERNAME/.local/share/applications/mimeapps.list:x-scheme-handler/https=chromium.desktop

~$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux

~$ lsb_release -d
Description: Debian GNU/Linux 8.8 (jessie)

~$ apt-cache policy chromium
chromium:
  Installed: 57.0.2987.98-1~deb8u1
  Candidate: 57.0.2987.98-1~deb8u1
  Version table:
 *** 57.0.2987.98-1~deb8u1 0
        500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
        100 /var/lib/dpkg/status

/usr/bin/xdg-settings:
198# command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word`"
199 command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | first_word | head -n 1`"
200# command="`grep -E "^Exec(\[[^]=]*])?=" "$file" | cut -d= -f 2- | sed -e 's/ .*$//' | head -n 1`"

Each line uncommented in turn with no change in chrome://settings: "Chromium is not currently your default browser."

Olivier Tilloy (osomon) wrote :

@rtimai: this is an ubuntu bug, and you appear to be running chromium on debian. You’ll want to report that bug in the debian bug tracker. The issue might be very similar, and a fix might apply to both versions, but the chromium packages in debian and ubuntu are not identical, so issues need to be tracked separately.

Olivier Tilloy (osomon) wrote :

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
rtimai (rtimai) wrote :

@osomon [re #51]: Thanks for your response, nice to see someone's paying attention. I have a feeling that this issue is not occurring with most users in Gnome 3 on Debian, and I AM because of a combination of pre-existing conditions (I installed Dave Steele's Gnome-Gmail (from his PPA) so that mailto links open my Gmail account in Chromium. Plus, the Ubuntu forums always show a LOT more activity. Debian-stable (Jessie) repos are always several version behind in many packages. I suppose I'll wait patiently for this to resolve in time. Thanks again for your comment.

MR Zenwiz (mrzenwiz) wrote :

xdg-utils is not fixed in xenial- this problem still occurs on bionic.

Olivier Tilloy (osomon) wrote :

@mrzenwiz: is this the original problem, as quoted here:

 « Chromium shows on every launch "Chromium isn't your default browser", even when i select "Set as default" or "Don't ask again".

Chromium is set as default application for "Web" at System Settings -> Details -> Default Applications. »

or a separate issue?

xChris (cs-.) wrote :

Kubuntu 18.04 and still the bug occurs here!

xChris (cs-.) wrote :

Looks like f*ck-up when another browser (eg. firefox) is installed too.
I removed the other browser (firefox) and the chrome does not complain anymore.

Olivier Tilloy (osomon) wrote :

xChris: glad to know that you found a way to make the problem go away, but this isn't a proper fix and I'd like to get to the bottom of the issue. If you reinstall firefox, does the problem re-appear? If so, can you share the output of the following command, run in a terminal:

    xdg-settings get default-web-browser

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.