[Portland-bugs] [Bug 35500] New: Default for $BROWSER under Mac OS X
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Mar 21 02:38:06 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=35500
Summary: Default for $BROWSER under Mac OS X
Product: Portland
Version: 1.0
Platform: Other
OS/Version: Mac OS X (All)
Status: NEW
Severity: enhancement
Priority: medium
Component: xdg-utils
AssignedTo: portland-bugs at lists.freedesktop.org
ReportedBy: jmv16 at cornell.edu
Hi all --
xdg-open dies unhappily on OS X because $BROWSER is not set in the standard
configuration, and it can't find any browser in an expected location.
I found the following elegant solution:
setenv BROWSER open
because there is a standard OS X command for this sort of thing (passes URLs to
user's choice of webbrowser, opens documents in corresponding application) e.g.
`open http://www.apple.com/`.
Perhaps a nice default if $BROWSER is not set but on OS X (e.g. $OSTYPE =
darwin, or `uname` = Darwin) is to just pass the URL along to `open`.
-Jeff
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Portland-bugs
mailing list