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

People

Vote (3)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: