|
|
@ -32,7 +32,7 @@ def main():
|
|
|
|
JAVA_EXECUTABLE = os.path.join(args.java_path, 'java.exe')
|
|
|
|
JAVA_EXECUTABLE = os.path.join(args.java_path, 'java.exe')
|
|
|
|
|
|
|
|
|
|
|
|
# Start the Java application in the background with a unique identifier
|
|
|
|
# Start the Java application in the background with a unique identifier
|
|
|
|
process = subprocess.Popen([JAVA_EXECUTABLE, '-Dapp.id=' + UNIQUE_IDENTIFIER, '-Xmx1024M', '-Xms1024M', '-jar', JAVA_APP_PATH, '--nogui', '--bonusChest'],
|
|
|
|
process = subprocess.Popen([f'{JAVA_EXECUTABLE}', '-Dapp.id=' + UNIQUE_IDENTIFIER, '-Xmx1024M', '-Xms1024M', '-jar', JAVA_APP_PATH, '--nogui', '--bonusChest'],
|
|
|
|
stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
|
|
|
|
stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
|
|
|
|
|
|
|
|
|
|
|
|
# Save the PID of the Java application
|
|
|
|
# Save the PID of the Java application
|
|
|
|