mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-23 17:14:22 +01:00
Use the old config directory .config/textsecure as fallback
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user