aboutsummaryrefslogtreecommitdiffstats
path: root/common
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 /common
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 'common')
-rw-r--r--common/rfb/CSecurityTLS.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx
index cc0ca89f..11e6dfe3 100644
--- a/common/rfb/CSecurityTLS.cxx
+++ b/common/rfb/CSecurityTLS.cxx
@@ -384,9 +384,9 @@ void CSecurityTLS::checkSession()
/* Certificate has some user overridable problems, so TOFU time */
- hostsDir = os::getvncdatadir();
+ hostsDir = os::getvncstatedir();
if (hostsDir == NULL) {
- throw AuthFailureException("Could not obtain VNC data directory "
+ throw AuthFailureException("Could not obtain VNC state directory "
"path for known hosts storage");
}