Merge lp:~thibault.lemaitre/ubuntu/natty/grass/use-preferred-web-browser into lp:ubuntu/natty/grass

Proposed by Thibault Lemaitre
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~thibault.lemaitre/ubuntu/natty/grass/use-preferred-web-browser
Merge into: lp:ubuntu/natty/grass
Diff against target: 14 lines (+3/-1)
1 file modified
debian/patches/www-browser.dpatch (+3/-1)
To merge this branch: bzr merge lp:~thibault.lemaitre/ubuntu/natty/grass/use-preferred-web-browser
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+49813@code.launchpad.net

Description of the change

In Ubuntu the default web browser (or HTML browser in this case) of the user correspond to xdg-open and not to x-www-browser. I changed it in the debian/patches/www-browser.dpatch file.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your work but the package is in sync with debian and a such chane would apply to debian as well so should be sent to the debian bts (http://bugs.debian.org), checking for "/usr/bin/x-www-browser" and then using "xdg-open" seems also wrong, you should rather add a case to use xdg-open if available before the current logic. Setting the merge request as "Work in progress", please set it back to "Needs review" if you get an update to review

Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

I did some modifications and push it. That's ready to be reviewed

Revision history for this message
Chris Halse Rogers (raof) wrote :

I've applied this as a git commit to the Debian packaging branch and forwarded it as Debian bug 615667 (you can track this at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615667 ).

As Seb said, we currently copy this package unmodified from Debian. This means less duplicated effort, and hence higher-quality packages in Ubuntu. Once your patch is applied in Debian we should sync the package - although it's a new upstream, it's the final release rather than a pre-release snapshot and most of the changes were already backported.

Thanks for your contribution to Ubuntu!

Revision history for this message
Martin Pitt (pitti) wrote :

(Closing MP then, as this has been fully handled as far as sponsoring goes)

Unmerged revisions

16. By Thibault Lemaitre

Introduce a test of xdg-open presence before the test of x-www-browser

15. By Thibault Lemaitre

In Ubuntu the default web browser (or HTML browser in this case) of the user correspond to xdg-open and not to x-www-browser

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/patches/www-browser.dpatch'
2--- debian/patches/www-browser.dpatch 2009-02-17 12:00:13 +0000
3+++ debian/patches/www-browser.dpatch 2011-02-20 18:33:34 +0000
4@@ -44,7 +44,9 @@
5 - done
6 - if [ -n "$GRASS_HTML_BROWSER" ] ; then
7 - break
8-+ if [ -x /usr/bin/x-www-browser ] ; then
9++ if [ -x /usr/bin/xdg-open ] ; then
10++ GRASS_HTML_BROWSER=xdg-open
11++ elif [ -x /usr/bin/x-www-browser ] ; then
12 + GRASS_HTML_BROWSER=x-www-browser
13 + else
14 + GRASS_HTML_BROWSER=true

Subscribers

People subscribed via source and target branches