mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-20 14:46:35 +02:00
Update sync_dir handling (#55)
* 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:
parent
4e93cfad50
commit
fed53e8612
|
@ -118,7 +118,7 @@ int main(string[] args)
|
||||||
cfg.init();
|
cfg.init();
|
||||||
|
|
||||||
// command line parameters override the config
|
// command line parameters override the config
|
||||||
if (syncDirName) cfg.setValue("sync_dir", syncDirName);
|
if (syncDirName) cfg.setValue("sync_dir", syncDirName.expandTilde().absolutePath());
|
||||||
|
|
||||||
// upgrades
|
// upgrades
|
||||||
if (exists(configDirName ~ "/items.db")) {
|
if (exists(configDirName ~ "/items.db")) {
|
||||||
|
|
Loading…
Reference in a new issue