mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-10-02 10:36:47 -04:00
fix: fix PRISMLAUNCHER_JAVA_PATHS
also set Launcher_ENVName as parent scope directly Signed-off-by: DioEgizio <dioegizio@protonmail.com>
This commit is contained in:
1 parent
1ea0c7570f
commit
eb44bdc3b3
2 files changed
+2
-3
No files matched your search
@@ -156,7 +156,7 @@ JavaInstallPtr JavaUtils::GetDefaultJava()
|
||||
|
||||
QStringList addJavasFromEnv(QList<QString> javas)
|
||||
{
|
||||
auto env = qEnvironmentVariable("%1_JAVA_PATHS").arg(BuildConfig.LAUNCHER_ENVNAME);
|
||||
auto env = QProcessEnvironment::systemEnvironment().value(QStringLiteral("%1_JAVA_PATHS").arg(BuildConfig.LAUNCHER_ENVNAME));
|
||||
#if defined(Q_OS_WIN32)
|
||||
QList<QString> javaPaths = env.replace("\\", "/").split(QLatin1String(";"));
|
||||
|
||||
|
||||
Reference in new issue
Block a user