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: Referencing home dir from Info.plist




On Jun 1, 2006, at 12:38 AM, Greg Guerin wrote:

Fabrizio Giudici wrote:

I know that Info.plist can contain pseudo-variables $APP_PACKAGE and
$JAVAROOT which expands to the root of the current application and its
classpath.


Is there any way to reference to the user's home directory?

Not that I know of. What are you trying to accomplish by such a scheme?


The "user.home" property will be the user's home dir, which you may be able
to expand or apply when your program runs. It depends on what you're
trying to accomplish.

I've created an .app launcher for an application created with the NetBeans OpenIDE platform.
Usually such applications are run by a generated shell script, but I don't like this approach
on Mac OS (while it's fine for Linux). The OpenIDE runtime wants that a special directory where
the workspace is created, and that directory is passed on the command line - it should be
$HOME/Library/Application Support/app_name.


I hoped to pass that info by just inserting the proper stuff into Info.plist, but as you are
confirming that there's no way for this approach, I'll try to write a small Java wrapper.


--
Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
http://www.tidalwave.it/blog - email@hidden
mobile: +39 348.150.6941 - fax: +39 027.005.105.36


_______________________________________________ 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: 
 >Re: Referencing home dir from Info.plist (From: Greg Guerin <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.