From 90f8ece0cbd520dc9b5a75260581f8a319423916 Mon Sep 17 00:00:00 2001 From: kasemir Date: Wed, 1 Apr 2026 09:24:11 -0400 Subject: [PATCH] Launcher: Fix loading bundled settings Is checking the absolute path, but then loading just the "name", which results in this type of error: ``` INFO [org.phoebus.product] Loading bundled settings from /Applications/CSS_Phoebus.app/product-xxxx/settings.ini Exception in thread "main" java.lang.RuntimeException: Unable to locate settings file: settings.ini at org.phoebus.framework.preferences.PropertyPreferenceLoader.load(PropertyPreferenceLoader.java:88) at org.phoebus.product.Launcher.loadSettings(Launcher.java:220) at org.phoebus.product.Launcher.main(Launcher.java:103) ``` Now it loads `/Applications/CSS_Phoebus.app/product-xxxx/settings.ini` as intended. --- core/launcher/src/main/java/org/phoebus/product/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/launcher/src/main/java/org/phoebus/product/Launcher.java b/core/launcher/src/main/java/org/phoebus/product/Launcher.java index 396c5368c1..ab8d739d34 100644 --- a/core/launcher/src/main/java/org/phoebus/product/Launcher.java +++ b/core/launcher/src/main/java/org/phoebus/product/Launcher.java @@ -100,7 +100,7 @@ public static void main(final String[] original_args) throws Exception { if (siteSettings.canRead()) { logger.info("Loading bundled settings from " + siteSettings.getAbsolutePath()); - loadSettings(siteSettings.getName()); + loadSettings(siteSettings.getAbsolutePath()); } // Handle arguments, potentially not even starting the UI