Skip to content

Are the pre and post launch script env vars available inside the launched instance? #2754

Answered by TheKodeToad
mainrs asked this question in Q&A
Discussion options

You must be logged in to vote

You can use

String instanceName = System.getProperty("org.prismlauncher.instance.name");

See https://github.com/PrismLauncher/PrismLauncher/blob/develop/libraries/launcher/org/prismlauncher/SystemProperties.java to see all of the properties that are available.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mainrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants