From 4c3fc6ec8385f4705b80491117d97762a22d754d Mon Sep 17 00:00:00 2001 From: Curtis Rueden Date: Thu, 21 Nov 2024 13:04:43 -0600 Subject: [PATCH] Set scijava.app.directory property So that fiji.cfg is written with a relative path. --- src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java b/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java index 5b8af6a..b43c5ed 100644 --- a/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java +++ b/src/main/java/net/imagej/ui/swing/updater/LauncherMigrator.java @@ -328,6 +328,7 @@ private void switchToNewLauncher() { } setPropertyIfNull("scijava.app.name", appTitle); + setPropertyIfNull("scijava.app.directory", appDir.getPath()); Path splashImage = appDir.toPath().resolve("images").resolve("icon.png"); setPropertyIfNull("scijava.app.splash-image", splashImage.toString());