[racket] `send-url', unix and `xdg-open'

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Thu Apr 18 11:53:59 EDT 2013

On 04/18/2013 11:35 AM, Diogo F. S. Ramos wrote:
> Looking at `collects/net/sendurl.rkt' I see that `xdg-open' is commented
> out in the `all-unix-browsers' list, although it's still a key in a case
> in `send-url/unix'.
>
> Is there a reason to not use `xdg-open'?

It doesn't work with file: URLs that have query parts, like

   file:///path/to/racket/doc/search/index.html?q=lambda

which is how a search from DrRacket or "raco docs" works.

Eli: it occurs to me that the main search page could look in the 
fragment (after the "#") as well as the query (after the "?") for its 
arguments. The version of xdg-open I have installed does work with 
fragments.

Ryan


Posted on the users mailing list.