From 2176babfadd64ebca40e268924a2e635576cd547 Mon Sep 17 00:00:00 2001 From: soloturn Date: Fri, 11 Oct 2024 11:38:25 +0200 Subject: [PATCH] permit install into windows program files when installing terasology into program files, that dir is not writeable. starting up, terasology tries to create a folder in .local, which then fails. therefor, permit to start the application from a different directory, and let it anyway find its libraries via the classpath. a workaround, as the app should ideally know its location and other jarfiles without tinkering with the classpath. --- facades/PC/src/main/startScripts/windowsStartScript.bat.gsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facades/PC/src/main/startScripts/windowsStartScript.bat.gsp b/facades/PC/src/main/startScripts/windowsStartScript.bat.gsp index a4cf2790ac4..6e9e7181ce8 100644 --- a/facades/PC/src/main/startScripts/windowsStartScript.bat.gsp +++ b/facades/PC/src/main/startScripts/windowsStartScript.bat.gsp @@ -62,8 +62,8 @@ goto fail <% if ( mainClassName.startsWith('--module ') ) { %>set MODULE_PATH=$modulePath<% } %> -@rem Execute ${applicationName} -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %${optsEnvironmentVar}% <% if ( appNameSystemProperty ) { %>"-D${appNameSystemProperty}=%APP_BASE_NAME%"<% } %> <% if ( mainClassName.startsWith('--module ') ) { %>--module-path "%MODULE_PATH%" <% } %>-jar lib\\Terasology.jar %* +@rem Execute ${applicationName} in home directory +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %${optsEnvironmentVar}% <% if ( appNameSystemProperty ) { %>"-D${appNameSystemProperty}=%APP_BASE_NAME%"<% } %> <% if ( mainClassName.startsWith('--module ') ) { %>--module-path "%MODULE_PATH%" <% } %>-jar "%APP_HOME%\\lib\\Terasology.jar" %* :end @rem End local scope for the variables with windows NT shell