From 273b2c6263f56114c8ac77c1c247d575505ef9e8 Mon Sep 17 00:00:00 2001 From: Niels van de Weem Date: Thu, 26 May 2022 16:10:40 +0200 Subject: [PATCH] Store saved state in user profile --- .gitignore | 1 - src/main/java/com/getpcpanel/profile/Save.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index a5ff3bc..19521c7 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,3 @@ target/ # Application files /logs/ /lock.txt -/save.json diff --git a/src/main/java/com/getpcpanel/profile/Save.java b/src/main/java/com/getpcpanel/profile/Save.java index 7884403..ff6c899 100644 --- a/src/main/java/com/getpcpanel/profile/Save.java +++ b/src/main/java/com/getpcpanel/profile/Save.java @@ -17,7 +17,7 @@ @Log4j2 public class Save { private static Save save = new Save(); - private static final File SAVE_FILE = new File("save.json"); + private static final File SAVE_FILE = new File(System.getProperty("user.home"), ".pcpanel"); private final Map devices = new ConcurrentHashMap<>(); private volatile boolean obsEnabled; private volatile String obsAddress = "localhost";