Skip to content

Commit

Permalink
Merge pull request #94 from emanueljg/develop
Browse files Browse the repository at this point in the history
fix Nix wrapper using wrong JAVA_PATHS env var
  • Loading branch information
fn2006 authored Sep 9, 2023
2 parents 230a961 + a9e02ff commit a339ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion launcher/java/JavaUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ JavaInstallPtr JavaUtils::GetDefaultJava()

QStringList addJavasFromEnv(QList<QString> javas)
{
auto env = qEnvironmentVariable("PRISMLAUNCHER_JAVA_PATHS"); // FIXME: use launcher name from buildconfig
auto env = qEnvironmentVariable("POLLYMC_JAVA_PATHS"); // FIXME: use launcher name from buildconfig
#if defined(Q_OS_WIN32)
QList<QString> javaPaths = env.replace("\\", "/").split(QLatin1String(";"));

Expand Down
2 changes: 1 addition & 1 deletion nix/pkg/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ in
]
++ additionalPrograms;
in
["--prefix pollymc_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}"]
["--prefix POLLYMC_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}"]
++ lib.optionals stdenv.isLinux [
"--set LD_LIBRARY_PATH /run/opengl-driver/lib:${lib.makeLibraryPath runtimeLibs}"
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
Expand Down

0 comments on commit a339ab6

Please sign in to comment.