Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-12 Thread Greg Hendershott
People hit this using GUI Emacs on macOS -- and use the `exec-path-from-shell` Emacs Lisp package: https://github.com/purcell/exec-path-from-shell Ever find that a command works in your shell, but not in Emacs? This happens a lot on OS X, where an Emacs instance started from the GUI

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-11 Thread Robby Findler
On Sat, Nov 11, 2017 at 12:14 PM, Alexis King wrote: >> On Nov 11, 2017, at 08:17, Robby Findler >> wrote: >> >> One example that lives on (in a zombie-like state) is the "search in >> files" functionality > > Sort of off-topic, but I use the

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-11 Thread Alexis King
> On Nov 11, 2017, at 08:17, Robby Findler > wrote: > > One example that lives on (in a zombie-like state) is the "search in > files" functionality Sort of off-topic, but I use the Search in Files option all the time, so don’t think nobody’s finding it useful!

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-11 Thread Matthew Butterick
On Nov 11, 2017, at 10:07 AM, Matthew Butterick wrote: > >> On Nov 11, 2017, at 8:17 AM, Robby Findler > > wrote: >> >> There is definitely a tension here, but my experience >> suggests that it would not be a

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-11 Thread Matthew Butterick
> On Nov 11, 2017, at 8:17 AM, Robby Findler > wrote: > > There is definitely a tension here, but my experience > suggests that it would not be a good use of my time to do something > like that. At least, not without a clear pain point in my own mind. > Since you

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-11 Thread Robby Findler
FWIW, I have spent (far too much) time trying to replicate functionality in DrRacket that is best just used in the underlying OS or its tools somehow. One example that lives on (in a zombie-like state) is the "search in files" functionality and there are others that just died. There is definitely

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-09 Thread Matthew Butterick
I see your point. But this technique forfeits any broader compatibility with desktop-oriented tools (e.g., file launchers and whatnot) I did try making an Automator application containing a shell script that simply launches DrRacket, and also tried `bash -c ···` (to try to force it to launch

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-09 Thread Konrad Hinsen
On 08/11/2017 17:48, 'John Clements' via Racket Users wrote: IIRC, Mac has an apologetic moue towards unix-y things here: I believe there’s a special place in your home directory … or maybe it’s in ~/Library/Preferences, which would … okay, let me search. Okay, here you go:

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread 'John Clements' via Racket Users
> On Nov 8, 2017, at 12:42, Robby Findler wrote: > > How about "env X=Y racket -l- drracket file-to-open-in-drracket.rkt” ? +1 John -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Jack Firth
> > I wonder whether a submodule is a better approach here. DrRacket > implicitly runs a `test` submodule, while `racket` doesn't, and you > could add more submodules to the list in DrRacket. But that approach > doesn't work if the conditional adjustment goes in a library, instead > of the

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Robby Findler
How about "env X=Y racket -l- drracket file-to-open-in-drracket.rkt" ? Robby On Wed, Nov 8, 2017 at 2:18 PM, Matthew Butterick wrote: >>> In this case I was trying to configure a web servlet to run in differently >>> when launched from DrRacket (in terms of its port and

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Matthew Butterick
>> In this case I was trying to configure a web servlet to run in differently >> when launched from DrRacket (in terms of its port and servlet-path) to >> better >> approximate Apache / htaccess conditions that exist on the live web server. > > I wonder whether a submodule is a better

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Leif Andersen
> Maybe DrRacket should let you configure environment variables for a program in the same way that it lets you provide command-line arguments Yes. Please. Although just like command line arguments I could see this being a thing I want to change on a per-program basis, so I guess that's a point

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Matthew Flatt
At Wed, 8 Nov 2017 10:55:13 -0800, Matthew Butterick wrote: > > > On Nov 8, 2017, at 9:17 AM, Matthew Flatt wrote: > > > > DrRacket tries not to interfere with programs in a detectable way. > > Hmm ... so if DrRacket adopts a different set of environment variables from >

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Leif Andersen
> Hmm ... so if DrRacket adopts a different set of environment variables from > command-line `racket` —... It actually doesn't. This is just because you are opening it with macos's application framework...thingy On the other hand, if you run drracket directly from the command line (by

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Matthew Flatt
At Wed, 8 Nov 2017 08:31:13 -0800, Matthew Butterick wrote: > 2) Is there an environment variable that I can use to test if a > program is running in DrRacket? For instance, the "XPC_SERVICE_NAME" > variable has the value "org.racket-lang.DrRacket.39428". Though AFAIK > that is a Mac OS specific