jpackage: support for environment variables in --java-options
Michael Hall
mik3hall at gmail.com
Wed Sep 2 17:20:59 UTC 2020
> On Sep 2, 2020, at 12:14 PM, Scott Palmer <swpalmer at gmail.com> wrote:
>
> If your app need to use environment variables to configure something for runtime it is probably best to have your own stub launcher and launch a sub-process.
They need to be available at runtime for external native that expects them to be present.
>
> It can be tricky to have a smooth user experience with that though. You would want to avoid an extra icon in the dock/start bar. You don’t want the other process to show up as “java.exe”, etc. That’s the benefit of trying to solve this in the launcher created by jpackage.
>
What I am suggesting would be handled by jpackage within the application bundle. It would modify the Info.plist to include the LSEnvironment entries.
More information about the core-libs-dev
mailing list