Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permit install into windows program files #5282

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

soloturn
Copy link
Contributor

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 two things with this change. first, permit calling the windows bat script from a different directory. it then needs to find the library relative to the start script location, not to the location where the script is called from.

second, before starting java, change to home directory. ideally, terasology itself should find a proper path by default. but program files as run directory is in any case wrong, so change.

this is the same change which was used to upload to chocolatey.

@soloturn soloturn changed the title permit install into program files permit install into windows program files Oct 11, 2024
@soloturn
Copy link
Contributor Author

for the "cd" in the script - normally this should not be needed, as an app may folllow the xdg spec, and even use some library to make this easier, like https://github.com/dirs-dev/directories-jvm .

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.

Co-authored-by: BenjaminAmos <[email protected]>
@soloturn soloturn merged commit 9ad6cd2 into develop Oct 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants