Environment variables

Michael Hall mik3hall at gmail.com
Mon Feb 24 14:35:09 PST 2014

On Feb 24, 2014, at 4:10 PM, David DeHaven <david.dehaven at oracle.com> wrote:

>> I think I asked this before. I'm not sure it was answered, not remembering the answer anyhow.
>> Should java System.getenv pick up ones that are added with LSEnvironment in the Info.plist file?
>> It doesn't seem to. 
>> What would be a workaround for java code that depends on things like a HOME directory set?
> Launching from Finder or other LaunchServices method? It has no effect when launching from the command line.
> Is it sandboxed? I don't know if sandboxing has an effect on LSEnvironment, but I suspect it might considering it's been exploited to infect machines with trojans (via DYLD_INSERT_LIBRARIES).
> What are you ultimately trying to accomplish?

Application. Signed, not sandboxed. Something recently, Lion -> Mountain Lion maybe? seemed not to work unless I signed it. So I self-signed. I first looked at this a while ago I think before it was even signed and still couldn't get it to work.
I'm trying to interface 3rd party code to my HalfPipe application. It's a JSR 223 interface to the R language.
It seems to require a R_HOME environment variable set. Which so far, I can't  give it with LSEnvironment through the plist.

Michael Hall

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps http://www195.pair.com/mik3hall/index.html#appconverter

More information about the macosx-port-dev mailing list