PolyMC icon indicating copy to clipboard operation
PolyMC copied to clipboard

Unable to use environment variable "$INST_JAVA_ARGS" in custom commands

Open FrenkYang0918 opened this issue 1 year ago • 0 comments

Operating System

Windows

Version of PolyMC

PolyMC 6.1

Version of Qt

Qt 6.6.1

Description of bug

When I use $INST_JAVA_ARGS in custom commands, it is identified as $INST_JAVA_ARGS, like path/to/javaw.exe_ARGS

Steps to reproduce

  • Settings -> Custom Commands
  • Input a command includes $INST_JAVA_ARGS to Pre-launch command, such as echo $INST_JAVA_ARGS (No need to consider whether it can be executed).
  • Launch any instance
  • In console window of the instance -> Minecraft Log, you will see: Running Pre-Launch command: echo path/to/javaw.exe_ARGS

Suspected cause

No response

This issue is unique

  • [X] I have searched the issue tracker and did not find an issue describing my bug.

FrenkYang0918 avatar Dec 14 '24 05:12 FrenkYang0918