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



Fabrizio Giudici wrote:

>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.

I don't entirely understand all the details, but I wouldn't dismiss shell
scripts unless you have a good reason.  Shell scripts have easy access to
$HOME, and they can end with the 'exec' builtin that chains to another
executable.  In other words, if it works and has no unpleasant
side-effects, then why not use it?

I don't quite see how writing a Java wrapper would be any better, and it
could be worse, because it probably takes longer to launch 'java' than it
does to run a shell script.

Possibly also relevant, at least in general principles:
  <http://www.amug.org/~glguerin/howto/More-open-files.html>

  -- GG


 _______________________________________________
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



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.