Update CONFIGPATH directory in Config.java

The configuration path directory has been changed from the user's home directory to a mount point. This is to provide a more appropriate access point for the "ShutdownInfo" configuration file.
This commit is contained in:
Teriuihi 2024-07-20 21:26:29 +02:00
parent d8b4367dcc
commit f16166033a

View File

@ -31,7 +31,7 @@ public final class Config {
public static File CONFIGPATH;
public static void init() { // todo setup share for the config
CONFIGPATH = new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs" + File.separator + "ShutdownInfo");
CONFIGPATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "ShutdownInfo");
CONFIG_FILE = new File(CONFIGPATH, "config.yml");
configLoader = YAMLConfigurationLoader.builder()