Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info.plist, WorkingDirectory, and User's Home Dir




On Jan 9, 2007, at 4:32 PM, Yahya Cahyadi wrote:


<key>user.dir</key> <string>~/Library/Application Support/Workstation</string>

Sort of surprised me that you can successfully override the user.dir property at launch but it appears you can...


java -cp /Users/mjh -Duser.dir=/Users/mjh UserDir
/Users/mjh

What goes into the Info.plist is parsed by the JavaApplicationStub which has no way as far as I know as you mentioned to work with any kind of user variable.

An option might be to go with launching a Unix script as per...
http://www.amug.org/~glguerin/howto/More-open-files.html#prelude
[You specifiy the script as the application executable in the Info.plist file so not incompatible]


and have the script launch java with something like the above -D property set.

Mike Hall        mikehall at spacestar dot net
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Info.plist, WorkingDirectory, and User's Home Dir (From: "Yahya Cahyadi" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.