From: Sparapani, R. <rsp...@hp...> - 2007-08-20 23:29:43
|
> Ben Bolker wrote: > How about: > > (1) default =3D Sys.getenv("WINE") > if this is empty, > (2) if (file.exists("/usr/bin/wine")) /usr/bin/wine > else > (3) try to locate with system calls: >=20 > which wine ?=20 > locate wine | grep bin/wine$ | head -1 ? > > or should "which wine" be preferred? how widely can we assume this=20 >will work on MacOS/Intel Unix? Well, for 2), I would have guessed /usr/local/bin/wine on linux or=20 /Applications/Darwine/Wine.bundle/Contents/bin on Mac. There should be no 3), it just gets too complicated. 1) and 2) are enough. |