Summary: | Default for $BROWSER under Mac OS X | ||
---|---|---|---|
Product: | Portland | Reporter: | jmv16 |
Component: | xdg-utils | Assignee: | Portland Bugs <portland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | low | CC: | jmv16 |
Version: | 1.0 | Keywords: | patch |
Hardware: | Other | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
jmv16
2011-03-21 02:38:05 UTC
This is version 1.0.1 by the way. What would help (esp coming from someone with access and knowledge of OSX), 1. A scriptable way to identify osx platform. for example, see detectDE() function in xdg-open. 2. For osx platform, suggested values for $BROWSER , or even suggested specialized open_osx function(s). Rex -- I thought I provided answers to both of these questions? My sh coding skils are too rusty to supply entire code fragments, but you can identify OS X by the $OSTYPE environment variable or by the output of `uname`, and by far the most sensible value for $BROWSER is simply "open" which will recognize a URL commandline argument and pass it to the user's default browser. Hopefully that's enough info for someone else to code it up. -Jeff ok, if uname output is indeed 'Darwin' , we can utilize that. Thanks! http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=ca33e673f7fd9173267843aac9668f692d48d6da So far, this only implements the mapping of xdg-open => open on Darwin platform, and doesn't touch any other utilities. There's further work to be done to integrate the other bits. One thing we could consider is setting BROWSER=open in the meantime as suggested (but not implemented). |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.