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

Allow java arguments to read environment variables #5498

Open
1 task done
m1dugh opened this issue Aug 23, 2024 · 0 comments
Open
1 task done

Allow java arguments to read environment variables #5498

m1dugh opened this issue Aug 23, 2024 · 0 comments
Labels
suggestion Feature suggestions that have not been accepted yet.

Comments

@m1dugh
Copy link

m1dugh commented Aug 23, 2024

Role

I package multimc for nixos

Suggestion

I want the java arguments to resolve environment features

Benefit

It would allow to specify a specific folder for the native libraries allowing usage of both nixos and wayland

This suggestion is unique

  • I have searched the issue tracker and did not find an issue describing my suggestion, especially not one that has been rejected.

You may use the editor below to elaborate further.

Since nixos does libraries differently, and minecraft needs patched library for wayland, the only way to run minecraft on wayland nixos, is to specify manually the path of the derivation as java.library.path and org.lwjgl.glfw.libname everytime the package is updated.
A simple way to fix this would be to be able to use environment variables in java arguments for each instance, or for java to be able to read environment variables (such as JAVA_TOOL_OPTIONS) when launched from multimc.

@phit phit added the suggestion Feature suggestions that have not been accepted yet. label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestions that have not been accepted yet.
Projects
None yet
Development

No branches or pull requests

2 participants