Update sync_dir handling

* Update sync_dir handling to use the absolute path for setting parameter to something other than ~/OneDrive via config file or command line
This commit is contained in:
abraunegg 2018-07-09 10:26:44 +10:00
parent 4e93cfad50
commit 1d82f28197

View file

@ -118,7 +118,7 @@ int main(string[] args)
cfg.init();
// command line parameters override the config
if (syncDirName) cfg.setValue("sync_dir", syncDirName);
if (syncDirName) cfg.setValue("sync_dir", syncDirName.expandTilde().absolutePath());
// upgrades
if (exists(configDirName ~ "/items.db")) {