Bug 654746 - add gnome3 support, make default browser work again for xdg-settings
Summary: add gnome3 support, make default browser work again for xdg-settings
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F15Blocker, F15FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2010-11-18 18:13 UTC by Bastien Nocera
Modified: 2018-04-11 14:20 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-01 15:25:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch (5.27 KB, patch)
2010-11-18 18:13 UTC, Bastien Nocera
no flags Details | Diff
updated patch (5.27 KB, patch)
2010-11-19 02:32 UTC, Bastien Nocera
no flags Details | Diff
new patch (8.17 KB, patch)
2010-11-19 03:31 UTC, Bastien Nocera
no flags Details | Diff

Description Bastien Nocera 2010-11-18 18:13:46 UTC
Created attachment 461347 [details]
patch

GNOME switched to using the x-scheme-handler/http(s) for the default browser, instead of a custom GConf setting.

See also:
http://www.hadess.net/2010/10/new-control-center-and-you.html
http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#id2869854

Comment 1 Bastien Nocera 2010-11-18 18:16:22 UTC
Note that this is needed for Chromium to detect whether it's the default browser or not.

Comment 2 Colin Walters 2010-11-18 18:21:06 UTC
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?

Comment 3 Rex Dieter 2010-11-18 18:29:45 UTC
Any sh snippet advice on how to detect gnome3?  (and is this change specific to gnome3)?

Comment 4 Bastien Nocera 2010-11-18 19:31:32 UTC
(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).

Comment 5 Bastien Nocera 2010-11-19 02:32:37 UTC
Created attachment 461430 [details]
updated patch

Fixes xdg-settings check not working as expected (we were comparing a desktop name to a binary one).

Comment 6 Bastien Nocera 2010-11-19 02:35:43 UTC
(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.

Comment 7 Bastien Nocera 2010-11-19 03:31:02 UTC
Created attachment 461442 [details]
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).

Comment 8 Bastien Nocera 2011-02-01 12:58:40 UTC
Any news on this?

Comment 9 Rex Dieter 2011-02-01 13:27:43 UTC
Thanks for the poke, I'll work on this today.

Comment 10 Rex Dieter 2011-02-01 15:25:59 UTC
Patch upstreamed (with some minor fuzz),

http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=6f49c05ceb2a1935d07c49c2e100b5cf3cdf5f26

and snapshot build xdg-utils-1.1.0-0.2.20110201.fc15 submitted,
http://koji.fedoraproject.org/koji/taskinfo?taskID=2754753

Comment 11 Mark Rosenstand 2011-07-14 00:26:23 UTC
Not sure if this needs to be re-opened or if it's a new issue, but the functionality is broken in xdg-utils-1.1.0-0.6.20110505.fc15.noarch.

[mark@thinkpad ~]$ xdg-settings get default-web-browserwhich: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/mark/bin)
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/mark/bin)
google-chrome.desktop
[mark@thinkpad ~]$ /opt/google/chrome/xdg-settings get default-web-browser
which: no gnome-default-applications-properties in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/mark/bin)
google-chrome.desktop

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?

Comment 12 Mark Rosenstand 2011-07-14 00:34:32 UTC
I think the Chromium guys figured it out. Please pick up the change from here: http://code.google.com/p/chromium/issues/detail?id=89258#c4

Comment 13 Mark Rosenstand 2011-07-14 00:45:58 UTC
Filed a separate bug: https://bugzilla.redhat.com/show_bug.cgi?id=721188


Note You need to log in before you can comment on or make changes to this bug.