gnome-open uses firefox while it's not the preferred browser
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Chromium Browser |
Unknown
|
Unknown
|
||
| chromium-browser (Ubuntu) |
Medium
|
Chris Coulson | ||
| Natty |
Medium
|
Chris Coulson | ||
| gnome-control-center (Ubuntu) |
Medium
|
Michael Terry | ||
| Natty |
Medium
|
Michael Terry | ||
| xdg-utils (Fedora) |
Fix Released
|
Medium
|
||
| xdg-utils (Ubuntu) |
Medium
|
Chris Coulson | ||
| Natty |
Medium
|
Chris Coulson |
Bug Description
Chromium is set as prefered browser, but firefox opens.
$ gconftool --get /desktop/
/usr/bin/
[Workaround]
Run:
xdg-mime default chromium-
xdg-mime default chromium-
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libgnome2-0 2.32.0-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.36-
Architecture: i386
Date: Tue Nov 2 22:13:37 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: libgnome
Ian Corne (icorne) wrote : | #1 |
Changed in libgnome (Ubuntu): | |
status: | New → Confirmed |
|
#25 |
Note that this is needed for Chromium to detect whether it's the default browser or not.
|
#26 |
In order to upstream this patch, wouldn't we need to make it able to detect GNOME 2.32 vs 3 and choose the right one?
|
#27 |
Any sh snippet advice on how to detect gnome3? (and is this change specific to gnome3)?
summary: |
- gnome-opens uses firefox while it's not the prefered browser. + gnome-open uses firefox while it's not the preferred browser |
|
#28 |
(In reply to comment #3)
> Any sh snippet advice on how to detect gnome3? (and is this change specific to
> gnome3)?
It's GNOME3 specific, so this is what we'll need in Fedora going forward (from F15 onwards).
|
#29 |
Created attachment 461430
updated patch
Fixes xdg-settings check not working as expected (we were comparing a desktop name to a binary one).
|
#30 |
(In reply to comment #2)
> In order to upstream this patch, wouldn't we need to make it able to detect
> GNOME 2.32 vs 3 and choose the right one?
Right, it seems that the upstream isn't as dead as I thought and Rex is a committer, so I should fix it up.
|
#31 |
Created attachment 461442
new patch
Adds the ability to detect GNOME 3.x, on its own, and also ports the mailto functionality to x-scheme-handler.
I also tested the GNOME3 code path more thoroughly for the browser settings, and it works as expected on the command-line, and when used in chromium ("check" to detect the current browser, and "set" to set chromium as the default browser).
Changed in libgnome (Ubuntu): | |
importance: | Undecided → Medium |
Anders Kaseorg (andersk) wrote : | #2 |
Hmm. I think this is related to
firefox (4.0~b7+
…
* Add x-scheme-handler magic to desktop files
- update debian/
- update debian/
- update debian/
- update debian/
…
-- Chris Coulson <email address hidden> Wed, 17 Nov 2010 21:35:57 +0000
which causes these warnings when running ‘update-
$ sudo update-
Warning in file "/usr/share/
Warning in file "/usr/share/
Warning in file "/usr/share/
Warning in file "/usr/share/
If I remove the x-scheme-handler types from /usr/share/
affects: | libgnome (Ubuntu) → firefox (Ubuntu) |
Sebastien Bacher (seb128) wrote : | #3 |
the issue is rather that chromium and other need similar updates
Sebastien Bacher (seb128) wrote : | #4 |
See http://
affects: | firefox (Ubuntu) → chromium (Ubuntu) |
affects: | chromium (Ubuntu) → chromium-browser (Ubuntu) |
Anders Kaseorg (andersk) wrote : | #5 |
I now have chromium-
MimeType=
in /usr/share/
It finally worked after I manually ran
xdg-mime default chromium-
xdg-mime default chromium-
gnome-default-
Bastien Nocera (hadess) wrote : | #6 |
Downgrade to a glib2 that's not targetted for GNOME 3, or upgrade the control-center to GNOME 3. It's a packaging bug, with mismatching versions.
Changed in gnome-control-center (Ubuntu): | |
importance: | Undecided → Medium |
Changed in xdg-utils (Ubuntu): | |
importance: | Undecided → Medium |
Alex Mayorga (alex-mayorga) wrote : | #7 |
These Mozilla Minefield crashes might be related:
Firefox-4.0 4.0b9pre Crash Report [@ nsGNOMEShellSer
Dmitry Shachnev (mitya57) wrote : | #8 |
I get the same on the latest Chromium from ppa:chromium-
Warning in file "/usr/share/
Warning in file "/usr/share/
Chris Coulson (chrisccoulson) wrote : | #9 |
Alex - yes, quite possibly. I will investigate that and address as part of https:/
Changed in gnome-control-center (Ubuntu): | |
assignee: | nobody → Michael Terry (mterry) |
Sebastien Bacher (seb128) wrote : | #10 |
gnome-control-
* 140_backport_
- Backport default Internet app panel from 3.0 to 2.32. This lets one
set the new-style glib url handlers for web and mail.
* 141_set_
- On startup, set the web and mail combo boxes to the current glib
value. Patch sent upstream.
* 142_fix_
- Fix icon handling for web and mail combo boxes. Patch sent upstream.
* 143_write_
- Until we update GNOME to 3.0, write back the current glib url
handlers to gconf for apps still directly using such keys rather than
the glib functions for launching apps.
Changed in gnome-control-center (Ubuntu): | |
status: | New → Fix Released |
Dmitry Shachnev (mitya57) wrote : | #11 |
I think a solution for Chromium will be to use "new" mimes only on Natty, and revert to the old ones on Lucid/Maverick.
(It does not affect the current 8.0.552 branch, but it will affect 9.0.593+ branch when it'll be released. Also, it affects beta/dev/nightly ppas).
|
#33 |
Thanks for the poke, I'll work on this today.
|
#34 |
Patch upstreamed (with some minor fuzz),
http://
and snapshot build xdg-utils-
http://
Sebastien Bacher (seb128) wrote : | #12 |
seems the issue has been fixed upstream in http://
Changed in xdg-utils (Ubuntu): | |
status: | New → Triaged |
Sebastien Bacher (seb128) wrote : | #13 |
not that the GNOME3 detection code will need to be updated since the libraries changed in natty but GNOME is still 2.32 so checking for the binary the way it's done upstream will not work on natty
Dmitry Shachnev (mitya57) wrote : Re: [Bug 670128] Re: gnome-open uses firefox while it's not the preferred browser | #14 |
Do you plan to include Gnome Control Centre 3 (when it is released) in Natty?
Sebastien Bacher (seb128) wrote : | #15 |
no, GNOME3 is released some weeks before natty
description: | updated |
Changed in xdg-utils (Ubuntu): | |
assignee: | nobody → Chris Coulson (chrisccoulson) |
status: | Triaged → In Progress |
milestone: | none → ubuntu-11.04-beta-2 |
Changed in chromium-browser (Ubuntu Natty): | |
status: | Confirmed → Triaged |
assignee: | nobody → Chris Coulson (chrisccoulson) |
milestone: | none → ubuntu-11.04-beta-2 |
Changed in xdg-utils (Ubuntu Natty): | |
status: | In Progress → Triaged |
Chris Coulson (chrisccoulson) wrote : | #16 |
I can't upload xdg-utils, so I'll just attach the diff here.
This is just a backport of the relevant parts of http://
In addition to this though, I had to also fix xdg-mime to use the users correct default mimetype handler settings (it was using ~/.local/
Chromium is shipping its own xdg-mime and xdg-settings, so I've assigned myself to that too
Launchpad Janitor (janitor) wrote : | #17 |
This bug was fixed in the package xdg-utils - 1.1.0~rc1-2ubuntu2
---------------
xdg-utils (1.1.0~
* Fix LP: #670128 - gnome-open uses firefox while it's not the preferred
browser. Backport upstream changes to use the x-scheme-handler types
for checking/setting the default browser/mail client in xdg-settings
and xdg-email. In addition to this, we fix xdg-mime to get/set
default mimetype handlers using the users mimeapps.list, rather than
the defaults.list, which doesn't work anywhere
- add debian/
- update debian/
-- Chris Coulson <email address hidden> Fri, 08 Apr 2011 02:00:05 +0100
Changed in xdg-utils (Ubuntu Natty): | |
status: | Triaged → Fix Released |
Changed in chromium-browser (Ubuntu Natty): | |
status: | Triaged → Invalid |
Anders Kaseorg (andersk) wrote : | #18 |
This bug is still present in chromium-browser. (To be sure, I tested again with chromium-browser 10.0.648.
See Chris’s comment #16: “Chromium is shipping its own xdg-mime and xdg-settings, so I've assigned myself to that too”.
Changed in chromium-browser (Ubuntu Natty): | |
status: | Invalid → Confirmed |
Sebastien Bacher (seb128) wrote : | #19 |
doesn't seem sponsoring is required there so unsubscribing the sponsors but feel free to add them back if that's wrong
tags: | added: patch |
Launchpad Janitor (janitor) wrote : | #20 |
This bug was fixed in the package chromium-browser - 10.0.648.
---------------
chromium-browser (10.0.648.
* New upstream minor release from the Stable Channel (LP: #762275)
This release fixes the following security issues:
- [75629] Critical, CVE-2011-1301: Use-after-free in the GPU process.
Credit to Google Chrome Security Team (Inferno).
- [78524] Critical, CVE-2011-1302: Heap overflow in the GPU process. Credit
to Christoph Diehl.
* Make the default mail client and browser settings work with the
x-scheme-
This is based on the xdg-utils 1.1.0~rc1-2ubuntu3 fix by Chris Coulson
<email address hidden>, itself based on Bastien Nocera <email address hidden>
upstream fix (LP: #670128)
- add debian/
- update debian/
* Fix the apport hooks to pass the expected 'ui' to add_info(), needed when
called from apport/ubuntu-bug (LP: #759635)
- update debian/
* Report a dedicated WMClass per webapp, needed by Unity/bamf.
(backported from trunk) (LP: #692462)
- add debian/
- update debian/
-- Fabien Tassin <email address hidden> Thu, 14 Apr 2011 22:36:16 +0200
Changed in chromium-browser (Ubuntu Natty): | |
status: | Confirmed → Fix Released |
Otus (jan-varho) wrote : | #21 |
This is *not* fixed in chromium 10.0.648.
James Cuzella (trinitronx) wrote : | #22 |
This bug does *not* seem fixed for me. I'm running:
google-
xdg-utils - 1.1.0~rc1-2ubuntu3
Ubuntu 11.04 "natty"
Setting via chrome's internal "Make Google Chrome my default browser" button does *not* work.
Setting via "sudo update-alternatives --config x-www-browser" does *not* work.
Setting via 'System'
Micah Gersten (micahg) wrote : | #23 |
If it's just about setting the default browser, that's being tracked in bug 776393. This bug was for opening links in chromium/chrome once it already is set as the default.
|
#35 |
Not sure if this needs to be re-opened or if it's a new issue, but the functionality is broken in xdg-utils-
[mark@thinkpad ~]$ xdg-settings get default-
which: no gnome-default-
google-
[mark@thinkpad ~]$ /opt/google/
which: no gnome-default-
google-
Chrome will use the system supplied one if available, and it keeps asking me if it can be the default. I've tried both stable (Chrome 12) and unstable (Chrome 14) and both fail.
As an aside, why is which(1) stderr output redirected to stdout?
|
#36 |
I think the Chromium guys figured it out. Please pick up the change from here: http://
|
#37 |
Filed a separate bug: https:/
Changed in xdg-utils (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Created attachment 461347
patch
GNOME switched to using the x-scheme- handler/ http(s) for the default browser, instead of a custom GConf setting.
See also: www.hadess. net/2010/ 10/new- control- center- and-you. html standards. freedesktop. org/shared- mime-info- spec/shared- mime-info- spec-latest. html#id2869854
http://
http://