From 7fbf116596bedf09f26589b8ed4141337d0a21f5 Mon Sep 17 00:00:00 2001 From: Jocelyn Castellano Date: Thu, 12 Oct 2023 19:24:01 -0700 Subject: [PATCH 1/2] Fix order of getenv in NoSessionLoadingPlugin --- .../java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java index 7d4a89a..5bb9d4d 100644 --- a/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java +++ b/src/main/java/gq/malwarefight/nosession/NoSessionLoadingPlugin.java @@ -213,7 +213,7 @@ public static void relaunchProcess(Matcher m) throws Exception { if (new File("/.flatpak-info").exists()) { LogManager.getLogger().warn("Bubblewrap sandboxing doesn't work on Flatpak. Malicious mods " + "could still steal long-lived session secrets"); - } else if (System.getenv("MINECRAFT_SANDBOX_VARIANT").equals("prismlauncher-bwrap")) { + } else if ("prismlauncher-bwrap".equals(System.getenv("MINECRAFT_SANDBOX_VARIANT"))) { LogManager.getLogger().info("Detected PrismLauncher sandbox, continuing..."); } else if (System.getProperties().containsKey("gq.malwarefight.nosession.disable_sandbox")) { LogManager.getLogger().info("Skipping sandboxing because gq.malwarefight.nosession.disable_sandbox was set..."); From c8c3d07e681a58e6be775730f5de80da2ed15041 Mon Sep 17 00:00:00 2001 From: Jocelyn Castellano Date: Thu, 12 Oct 2023 19:24:34 -0700 Subject: [PATCH 2/2] Bump version --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6cd84c0..c0baeab 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { kotlin("jvm") } -version = "1.2.0" +version = "1.2.1" group = "gq.malwarefight.nosession" val kotlinVersion = "1.8.21"