From 5e52811c743fc1cfd371cf19a700dc6ef09c4c07 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 9 Feb 2026 16:46:07 +0100 Subject: [PATCH] Remove hard coded default locations for admin config --- .../launcher/AdminPropertiesSetter.java | 41 ++++--------------- .../launcher/AdminPropertiesSetterTest.java | 19 +++++++++ 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java b/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java index 508ad2c49..29113bec3 100644 --- a/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java +++ b/src/main/java/org/cryptomator/launcher/AdminPropertiesSetter.java @@ -1,6 +1,5 @@ package org.cryptomator.launcher; -import org.apache.commons.lang3.SystemUtils; import org.slf4j.Logger; import java.io.IOException; @@ -14,14 +13,7 @@ import java.util.Set; /** * Class to overwrite system properties with an external properties file *

- * To overwrite system properties, the method {@link #adjustSystemProperties()} loads the properties file {@value CONFIG_NAME} from the file defined in the property {@value #ADMIN_PROP_FILE_KEY} and writes all supported properties to the {@link System} properties. - * If {@value #ADMIN_PROP_FILE_KEY} is {@code null} OS-specific, predefined paths are used: - *

- *

+ * To overwrite system properties, the method {@link #adjustSystemProperties()} reads the properties file defined in the property {@value #ADMIN_PROP_FILE_KEY} and writes all supported properties to the {@link System} properties. *

* The overridable properties are: *