Add the default config path on macOS
This commit is contained in:
parent
829e79929e
commit
a92ec9e546
|
@ -19,6 +19,10 @@ QString SyncthingConfig::locateConfigFile()
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
path = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("Syncthing/config.xml"));
|
path = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, QStringLiteral("Syncthing/config.xml"));
|
||||||
}
|
}
|
||||||
|
// The default Syncthing config path on macOS. The full path is "$HOME/Library/Application Support/Syncthing/config.xml".
|
||||||
|
if (path.isEmpty()) {
|
||||||
|
path = QStandardPaths::locate(QStandardPaths::RuntimeLocation, QStringLiteral("Syncthing/config.xml"));
|
||||||
|
}
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue