summarylogtreecommitdiffstats
path: root/patch.txt
blob: a34ad61dd48ac4c9584d0e1d17cfcd12a476aa4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- pokerth-1.1.2-rc/src/config/configfile.cpp	2017-08-16 14:24:03.000000000 +0200
+++ pokerth-1.1.2-rc/src/config/configfile.cpp	2023-09-06 10:40:47.976098929 +0200
@@ -118,7 +118,10 @@
 
 #else
 	//define app-dir
-	const char *homePath = getenv("HOME");
+	const char *homePath = getenv("XDG_CONFIG_HOME");
+	if(homePath == NULL) {
+		homePath = getenv("HOME");
+	}
 	if(homePath) {
 		configFileName = homePath;
 #ifndef ANDROID