#946877 racket-common: scribble PDF rendering relies on 'open' command

#946877#5
Date:
2019-12-16 23:48:27 UTC
From:
To:
Hi David,

If one loads a .scrbl file in drracket, one sees a button "Scribble PDF"
in the top bar, which when pressed generates an error complaining about
'open' not being found.

This is due to 'open' not being available in Debian (AFAIK it's an OS/X thing)

However there is 'gio open' (gio is from libglib2.0-bin) that does the same thing.

There is also xdg-open from xdg-utils that I thought was supposed to do
the same thing, but I notice that it seems to ignore my preference of
PDF viewer whereas gio gets it right (another bug to report).

The problem is here:

https://salsa.debian.org/bremner/racket/blob/master/share%2Fpkgs%2Fdrracket%2Fscribble%2Ftools%2Fdrracket-buttons.rkt#L67

replacing 'open' on that line with 'gio open' (while having libglib2.0-bin
installed) fixes this.

I guess that one would need a recommends, or one could make the error
message that results from gio not being available suggest installing
the package.

I'm afraid I've only looked at racket briefly so far, otherwise I'd
have tried to come up with a patch for you.

Anyway, thanks for packaging it -- It seems like a nice way to show my
kids functional programming.

Cheers, Phil.

P.S. the debsums error below is because I did the edit mentioned, to test
the fix.