aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/vncviewer/FileUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/vncviewer/FileUtils.java')
-rw-r--r--java/com/tigervnc/vncviewer/FileUtils.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/tigervnc/vncviewer/FileUtils.java b/java/com/tigervnc/vncviewer/FileUtils.java
index 95fec3e6..6b82d3e2 100644
--- a/java/com/tigervnc/vncviewer/FileUtils.java
+++ b/java/com/tigervnc/vncviewer/FileUtils.java
@@ -98,6 +98,10 @@ public class FileUtils {
return getVncDir("XDG_DATA_HOME", ".local" + getFileSeparator() + "share");
}
+ public static String getVncStateDir() {
+ return getVncDir("XDG_STATE_HOME", ".local" + getFileSeparator() + "state");
+ }
+
public static String getFileSeparator() {
String separator = null;
try {