Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Issue 274055: Add %s to the command in the Gnome url handlers.... (Closed)

Created:
11 years, 2 months ago by Lei Zhang
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add %s to the command in the Gnome url handlers. BUG=23793 TEST=Run xdg-open http://foo.com on Hardy/Gnome. The browser should open foo.com. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29103

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M third_party/xdg-utils/scripts/xdg-settings View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/xdg-utils/scripts/xdg-settings.in View 1 chunk +2 lines, -2 lines 5 comments Download

Messages

Total messages: 8 (0 generated)
Lei Zhang
let's try this again...
11 years, 2 months ago (2009-10-14 19:01:35 UTC) #1
Evan Stade
the reason I abandoned my change which did essentially the same thing as this is ...
11 years, 2 months ago (2009-10-14 19:04:36 UTC) #2
Lei Zhang
On 2009/10/14 19:04:36, Evan Stade wrote: > the reason I abandoned my change which did ...
11 years, 2 months ago (2009-10-14 19:42:38 UTC) #3
Evan Stade
http://codereview.chromium.org/274055/diff/1/3 File third_party/xdg-utils/scripts/xdg-settings.in (right): http://codereview.chromium.org/274055/diff/1/3#newcode324 Line 324: gconftool-2 --type string --set /desktop/gnome/applications/browser/exec "$binary" On 2009/10/14 ...
11 years, 2 months ago (2009-10-14 19:50:41 UTC) #4
Lei Zhang
http://codereview.chromium.org/274055/diff/1/3 File third_party/xdg-utils/scripts/xdg-settings.in (right): http://codereview.chromium.org/274055/diff/1/3#newcode324 Line 324: gconftool-2 --type string --set /desktop/gnome/applications/browser/exec "$binary" On 2009/10/14 ...
11 years, 2 months ago (2009-10-14 20:24:20 UTC) #5
Evan Stade
ok lg
11 years, 2 months ago (2009-10-14 20:25:48 UTC) #6
Lei Zhang
I looked into this a bit further. It looks as though on KDE4, you don't ...
11 years, 2 months ago (2009-10-14 22:14:21 UTC) #7
Mike Mammarella
11 years, 2 months ago (2009-10-15 02:13:47 UTC) #8
On 2009/10/14 22:14:21, Lei Zhang wrote:
> Also WRT to the default text/html application - we get this from xdg-mime, but
> xdg-mime is pretty broken on KDE 4, so there's a chance it might not work
right.
> See: http://bugs.freedesktop.org/show_bug.cgi?id=19392

There is a bug (18106) to include a copy of xdg-mime that fixes that bug, but
it's not yet fully fixed. The latest version still has a section that isn't
implemented for KDE4.

This change LGTM.

http://codereview.chromium.org/274055/diff/1/3
File third_party/xdg-utils/scripts/xdg-settings.in (right):

http://codereview.chromium.org/274055/diff/1/3#newcode324
Line 324: gconftool-2 --type string --set
/desktop/gnome/applications/browser/exec "$binary"
On 2009/10/14 20:24:22, Lei Zhang wrote:
> On 2009/10/14 19:50:41, Evan Stade wrote:
> > On 2009/10/14 19:42:38, Lei Zhang wrote:
> > > On 2009/10/14 19:04:37, Evan Stade wrote:
> > > > why no %U here?
> > > 
> > > Because it's %s on Gnome. I'll change kde to use %U too. See
> > > http://kb.mozillazine.org/Setting_Your_Default_Browser
> > 
> > well, you didn't put %s either
> 
> It doesn't do that either if you set a browser as the default in the UI.
> Gnome-open only looks at the url-handlers, it seems.

Yeah, when you have a URL to open it should only look at the URL handler. This
key is used to open "a web browser" without any particular URL in mind. At
least, that's what I remember being the case when I wrote this.

Powered by Google App Engine
This is Rietveld 408576698