Clojure

Make browse-url aware of xdg-open

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
    None
  • Environment:
    All platforms that provide xdg-open (as part of freedesktop.org) benefit from this. Fix was tested on OpenBSD.
  • Patch:
    Code
  • Approval:
    Ok

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
to open a URI. On most other systems it'll just falls through to open-url-in-swing instead. The attached patch
tests to see if freedesktop.org's "xdg-open" is present in the users path. This way browse-url will launch the
program associated with the URI, in my case chromium.

Activity

Andy Fingerhut made changes -
Field Original Value New Value
Attachment clj-896-browse-url-uses-xdg-open-patch2.txt [ 10974 ]
Andy Fingerhut made changes -
Patch Fixed [ 10009 ] Code [ 10001 ]
Rich Hickey made changes -
Fix Version/s Release 1.5 [ 10150 ]
Stuart Sierra made changes -
Waiting On richhickey
Stuart Sierra made changes -
Approval Screened [ 10004 ]
Rich Hickey made changes -
Fix Version/s Release 1.5 [ 10150 ]
Rich Hickey made changes -
Approval Screened [ 10004 ] Ok [ 10007 ]
Fix Version/s Release 1.6 [ 10157 ]
Stuart Halloway made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (3)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: