New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 7 users
Status: ExternalDependency
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment
Chromium doesn't recognise being the default browser when set as such by "Preferred Applications" in ubuntu
Reported by bensha...@gmail.com, May 27 2010 Back to list
Chrome Version (from the about:version page): 6.0.416.0 (48240) Ubuntu
Is this the most recent version: Yes
OS + version: ubuntu 10.04 lucid lynx
CPU architecture (32-bit / 64-bit): 64 bit
Window manager: compiz
URLs (if relevant): N/A
Behavior in Linux Firefox: OK
Behavior in Windows Chrome (if you have access to it): N/A

What steps will reproduce the problem?
1. From Gnome panel open System->Preferences->Preferred Applications
2. In the Web Browser field choose "Chromium"
3. Start Chromium

What is the expected result?

Chromium recognising it is the default browser

What happens instead?

Chromium asks to set itself as the default browser

Please provide any additional information below. Attach a screenshot
and backtrace if possible.

When Chromium sets itself as the default browser it uses the custom command 
"/usr/lib/chromium-browser/chromium-browser %s". When ubuntu sets it as the 
default browser it uses the command "chromium-browser %s". In both cases 
the browser functions properly when openning links from other apps.
 
Comment 1 by tony@chromium.org, May 31 2010
Labels: -Area-Undefined Area-Internals Pri-2
Status: Untriaged
Labels: Mstone-X
Status: Assigned
Comment 3 by evan@chromium.org, Jun 7 2010
Is this a bug in Chromium or is the bug in the .desktop file fta distributes?
Hi evan, I am not sure I understand your question. The desktop file, triggered through the Applications menu shortcut, works fine. If you tell me what data you need I can send it.
Evan is referring to /usr/share/applications/chromium-browser.desktop.
I attach the file.
chromium-browser.desktop
4.5 KB View Download
Comment 7 by evan@chromium.org, Jun 8 2010
I see, thanks for the attachment!  Comparing the Ubuntu Chromium .desktop and the Google Chrome one, I see these extra fields in the former:

X-MultipleArgs=false
StartupWMClass=Chromium-browser
StartupNotify=true

I'm not sure what the first one is, but the latter two allow your desktop to properly show the hourglass cursor when launching.  Ideally we'd just launch fast but I guess we should probably add those.
Comment 8 by f...@sofaraway.org, Jun 8 2010
@evan: iirc, this is not about the desktop file but about xdg-utils.
See https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/513133
Comment 9 by f...@sofaraway.org, Jun 8 2010
for StartupWMClass, see https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/587664
StartupNotify is for the "Window List" gnome applet. Users requested it so that they can see when the app is starting vs is already dead. I don't use that pplet myself though.

Status: ExternalDependency
In xdg-settings's check_browser_gnome(), $check is /usr/bin/chromium-browser, but $binary is chromium-browser. This is because the Ubuntu Chromium .desktop file has Exec=chromium-browser, whereas Google Chrome has Exec=/opt/google/chrome/google-chrome. I guess the discussion should really continue on the xdg-utils bug: https://bugs.freedesktop.org/show_bug.cgi?id=26300

fta: If you feel any of the extra fields in the .desktop file are worth upstreaming, then please do. I personally don't care for startup notification.
Well, even with the patch in the freedesktop bug, we still fail the fourth check in check_browser_gnome().
Comment 12 by f...@sofaraway.org, Sep 29 2010
using chromium trunk from a recent ubuntu package, if you set chromium as your preferred browser *in gnome*, chromium still shows it's not default.
If now i ask Chromium to become the default browser, it works.
That's too bad to have to select that twice.

I traced it a bit:
It starts from "xdg-settings check default-web-browser chromium-browser.desktop",
finds DE=gnome, calls a bunch of gconf prefs (all pointing to chromium) and gets to a last test pointing to firefox. That's "xdg-mime query default text/html"
xdg-mime gets that from /usr/share/gnome/applications/defaults.list which is a symlink to /etc/gnome/defaults.list itself provided by the desktop-file-utils package.
I don't understand why xdg-settings has to go that deep..
Comment 13 by evan@chromium.org, May 10 2011
Mergedinto: 70158
Status: Duplicate
Comment 14 by mdm@chromium.org, May 10 2011
Mergedinto:
Status: ExternalDependency
This one is different. It's because the chromium packages don't specify the full path in the desktop files.
Comment 15 by evan@chromium.org, Jun 11 2012
Cc: -evan@chromium.org
(Un-ccing myself from bugs.)
Project Member Comment 16 by bugdroid1@chromium.org, Mar 10 2013
Labels: -Area-Internals Cr-Internals
Sign in to add a comment