jpackage: support for environment variables in --java-options
Scott Palmer
swpalmer at gmail.com
Thu Sep 3 12:12:14 UTC 2020
> On Sep 3, 2020, at 4:26 AM, Michael Hall <mik3hall at gmail.com> wrote:
>
>
>
>> On Sep 2, 2020, at 10:07 PM, Scott Palmer <swpalmer at gmail.com <mailto:swpalmer at gmail.com>> wrote:
>>
>> There is already a way to supply a custom Info.plist.
>> That can have the LSEnvironment entries you want.
>>
>> https://bugs.openjdk.java.net/browse/JDK-8233175 <https://bugs.openjdk.java.net/browse/JDK-8233175>
>>
>> I was under the impression that we were after something that would allow different values to get to the application based on environment variables. The env var values can’t be hard-coded in the Info.plist to do that, we want values that are expanded based on set environment variables on the user’s machine. Isn’t that what this is about?
>>
>> Scott
>
> Yes for Serban’s thread. Which was already shown not to work OS X on the users machine because user environment variables aren’t passed to applications.
As I mentioned earlier, launchctl must be used to set environment variables that you want passed to GUI applications.
Scott
More information about the core-libs-dev
mailing list