Use the old config directory .config/textsecure as fallback

This commit is contained in:
AsamK committed 2016-03-27 16:17:42 +02:00
1 parent eabd361405
commit 95278a95ce
2 files changed
+10

No files matched your search

+6
View File
@@ -83,6 +83,12 @@ public class Main {
String settingsPath = ns.getString("config");
if (TextUtils.isEmpty(settingsPath)) {
settingsPath = System.getProperty("user.home") + "/.config/signal";
if (!new File(settingsPath).exists()) {
String legacySettingsPath = System.getProperty("user.home") + "/.config/textsecure";
if (new File(legacySettingsPath).exists()) {
settingsPath = legacySettingsPath;
}
}
}
m = new Manager(username, settingsPath);