mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-19 03:01:27 +00:00
adjust windows buildscripts to use appdata instead of userhome/hard/coded/path
This commit is contained in:
@@ -2,6 +2,7 @@ package org.cryptomator.common;
|
||||
|
||||
import com.google.common.base.Splitter;
|
||||
import com.google.common.base.Strings;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -18,7 +19,7 @@ import java.util.stream.StreamSupport;
|
||||
public class Environment {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(Environment.class);
|
||||
private static final char PATH_LIST_SEP = ':';
|
||||
private static final char PATH_LIST_SEP = SystemUtils.IS_OS_WINDOWS? ';':':';
|
||||
private static final int DEFAULT_MIN_PW_LENGTH = 8;
|
||||
private static final String SETTINGS_PATH_PROP_NAME = "cryptomator.settingsPath";
|
||||
private static final String IPC_SOCKET_PATH_PROP_NAME = "cryptomator.ipcSocketPath";
|
||||
|
||||
@@ -34,6 +34,7 @@ public class PropertiesPreprocessor {
|
||||
switch (match.group(1)) {
|
||||
case "appdir" -> ENV.get("APPDIR");
|
||||
case "appdata" -> ENV.get("APPDATA");
|
||||
case "localappdata" -> ENV.get("LOCALAPPDATA");
|
||||
case "userhome" -> System.getProperty("user.home");
|
||||
default -> {
|
||||
LOG.warn("Found unknown variable @{{}} in property value {}.", match.group(), value);
|
||||
|
||||
Reference in New Issue
Block a user