replace ~/ with the actual home directory (same fix as in late 2006 clients) mostly for Linux

This commit is contained in:
lesleyrs committed 2024-05-06 23:59:41 +02:00
1 parent 2e9f7e4574
commit 4e773c112a
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ public class Signlink implements Runnable {
}
public static String findcachedir() {
String[] as = {"c:/windows/", "c:/winnt/", "d:/windows/", "d:/winnt/", "e:/windows/", "e:/winnt/", "f:/windows/", "f:/winnt/", "c:/", "~/", "/tmp/", "", "c:/rscache", "/rscache"};
String[] as = {"c:/windows/", "c:/winnt/", "d:/windows/", "d:/winnt/", "e:/windows/", "e:/winnt/", "f:/windows/", "f:/winnt/", "c:/", System.getProperty("user.home") + "/", "/tmp/", "", "c:/rscache", "/rscache"};
if ((storeid < 32) || (storeid > 34)) {
storeid = 32;
}