diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-05-30 15:37:27 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-05-30 16:33:02 +0200 |
commit | 68134f03af376d103f2ab4a3ec654199842f855d (patch) | |
tree | 21613ba9b95a35bdf69eb6eaf9b4fca1e4e07cb3 /java/com/tigervnc/vncviewer/FileUtils.java | |
parent | 115a79eca024d1ba4e88702792e691e56d972c34 (diff) | |
download | tigervnc-68134f03af376d103f2ab4a3ec654199842f855d.tar.gz tigervnc-68134f03af376d103f2ab4a3ec654199842f855d.zip |
Use $XDG_STATE_HOME for known hosts storage
This is an often changed database, so it is better suited for
$XDG_STATE_HOME rather than the more static $XDG_DATA_HOME.
Diffstat (limited to 'java/com/tigervnc/vncviewer/FileUtils.java')
-rw-r--r-- | java/com/tigervnc/vncviewer/FileUtils.java | 4 |
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 { |