Custom Commands tab in settings

Pre-launch command runs before the instance launches and post-exit command runs after it exits.

Both will be run in the launcher's working folder with extra environment variables:

  • $INST_NAME - Name of the instance
  • $INST_ID - ID of the instance (its folder name)
  • $INST_DIR - absolute path of the instance
  • $INST_MC_DIR - absolute path of Minecraft
  • $INST_JAVA - Java binary used for launch
  • $INST_JAVA_ARGS - command-line parameters used for launch (warning: will not work correctly if arguments contain spaces)

Wrapper command allows launching using an extra wrapper program (like 'optirun' on Linux)


Pages in Help pages:

Comment Rules

By submitting a comment, you agree to uphold the Prism Launcher Code of Conduct.

✅ What user-contributed comments are for

  • Share additional information relevant to the article.
  • Mention a workaround for a common issue.
  • Link to useful third-party resources that are relevant to the current page, such as tutorials or articles.
    • It is allowed to occasionally link to resources you've created. When doing so, you must disclose your affiliation with the resource in some way. However, linking to resources you've created should not represent the majority of your interactions with user notes. Excessive self-promotion is not allowed and will be moderated away.

🚫 What user-contributed comments are not for

Comments not following the above rules will be removed.

Licensing of user-contributed comments

Launcher contributors may occasionally go through the comments and may incorporate information from them in the documentation. By submitting a comment, you accept that it may be incorporated in unmodified or modified form in the launcher and/or documentation, subject to the GPL-3.0 license for the launcher and AGPL-3.0 license for the documentation.