aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-05-30 15:37:27 +0200
committerPierre Ossman <ossman@cendio.se>2024-05-30 16:33:02 +0200
commit68134f03af376d103f2ab4a3ec654199842f855d (patch)
tree21613ba9b95a35bdf69eb6eaf9b4fca1e4e07cb3 /java/com/tigervnc/rfb
parent115a79eca024d1ba4e88702792e691e56d972c34 (diff)
downloadtigervnc-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/rfb')
-rw-r--r--java/com/tigervnc/rfb/CSecurityTLS.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/tigervnc/rfb/CSecurityTLS.java b/java/com/tigervnc/rfb/CSecurityTLS.java
index ab221427..39d1f541 100644
--- a/java/com/tigervnc/rfb/CSecurityTLS.java
+++ b/java/com/tigervnc/rfb/CSecurityTLS.java
@@ -277,12 +277,12 @@ public class CSecurityTLS extends CSecurity {
"do you want to continue?"))
throw new AuthFailureException("server certificate has expired");
}
- File vncDir = new File(FileUtils.getVncDataDir());
+ File vncDir = new File(FileUtils.getVncStateDir());
if (!vncDir.exists()) {
try {
vncDir.mkdir();
} catch(SecurityException e) {
- throw new AuthFailureException("Could not obtain VNC data directory "+
+ throw new AuthFailureException("Could not obtain VNC state directory "+
"path for known hosts storage");
}
}