From 3147ae44bf05ada4aa2a663bccfcdf8028cf2c63 Mon Sep 17 00:00:00 2001 From: Juan Patricio Date: Thu, 8 Feb 2024 10:52:17 -0300 Subject: [PATCH] Use ModManager exec path as base for Duskers folder path --- src/main/java/com/juanmuscaria/dmm/util/DuskersHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/juanmuscaria/dmm/util/DuskersHelper.java b/src/main/java/com/juanmuscaria/dmm/util/DuskersHelper.java index 3f7b6a3..adbd222 100644 --- a/src/main/java/com/juanmuscaria/dmm/util/DuskersHelper.java +++ b/src/main/java/com/juanmuscaria/dmm/util/DuskersHelper.java @@ -152,7 +152,7 @@ public static ProcessBuilder buildDuskersLaunchProcess(boolean modded) throws Di var pb = new ProcessBuilder(); var cmd = new ArrayList(); var env = pb.environment(); - var local = Path.of(".").toAbsolutePath(); + var local = ModManagerApplication.getSelfPath().toAbsolutePath().getParent(); logger.info("Duskers path:" + local); if (SystemUtils.IS_OS_WINDOWS) {