[CLJ-896] Make browse-url aware of xdg-open Created: 13/Dec/11 Updated: 12/Apr/13 |
|
| Status: | Open |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Release 1.6 |
| Type: | Enhancement | Priority: | Minor |
| Reporter: | Jasper Lievisse Adriaanse | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Environment: |
All platforms that provide xdg-open (as part of freedesktop.org) benefit from this. Fix was tested on OpenBSD. |
||
| Attachments: |
|
| Patch: | Code |
| Approval: | Ok |
| Waiting On: | Rich Hickey |
| Description |
|
clojure.java.browse/browse-url tests to see if it's running on Mac OS to fall back to "/usr/bin/open" in order |
| Comments |
| Comment by Andy Fingerhut [ 28/Feb/12 6:19 PM ] |
|
|
| Comment by Andy Fingerhut [ 29/Feb/12 1:18 PM ] |
|
clj-896-browse-url-uses-xdg-open-patch2.txt is based more on the patch attached to I think this patch improves on both of the previous patches for CLJ-896 and Tested on: Mac OS X 10.6.8 It would be great if someone could test it on a BSD system. The only possible issue I can think of is whether the output of the "which" command is different there than on the Linux system I tested. If someone wants to make a patch that doesn't use "which", but instead checks the PATH, I'd recommend they also test on Windows in cmd.exe to make sure it works correctly there. |
| Comment by Stuart Sierra [ 09/Nov/12 9:04 AM ] |
|
Screened. Verified on Mac OS X. |
| Comment by Jasper Lievisse Adriaanse [ 09/Nov/12 9:41 AM ] |
|
And I've tested it on OpenBSD. |