[Portland-bugs] [Bug 59104] New: xdg-open doesn't honor $BROWSER in "generic" environment

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 7 06:34:33 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=59104

          Priority: medium
            Bug ID: 59104
          Assignee: portland-bugs at lists.freedesktop.org
           Summary: xdg-open doesn't honor $BROWSER in "generic"
                    environment
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: goeran at uddeborg.se
          Hardware: Other
            Status: NEW
           Version: 1.1.0
         Component: xdg-utils
           Product: Portland

As I understand it, the intended way to choose the preferred browser in a
"generic" desktop environment is to set the environment variable $BROWSER.  But
when running xdg-open on a URL in such an environment, it will use whatever
browser comes first when searching for desktop files with
"x-scheme-handler/http" among the MimeType:s.  $BROWSER is only taken into
account if no such desktop file exists.

I would have thought the call to open_generic_xdg_x_scheme_handler() in
open_generic() in xdg-open ought to come AFTER the "for browser in $BROWSER"
loop.

When testing on my Fedora box with
xdg-utils-1.1.0-0.14.20120809git.fc18.noarch, if I open a URL with xdg-open, it
comes up in epiphany.  Both epiphany.desktop and firefox.desktop lists
"x-scheme-handler/http", and since "e" comes before "f", epiphany wins.  I have
$BROWSER set to "firefox", but that is apparently ignored.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20130107/473f16ca/attachment.html>


More information about the Portland-bugs mailing list