Use the old config directory .config/textsecure as fallback

This commit is contained in:
AsamK 2016-03-27 14:02:28 +02:00
parent eabd361405
commit 95278a95ce
2 changed files with 10 additions and 0 deletions

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);