diff --git a/README.md b/README.md index 8d0af4e..0252e0b 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ destination: youTrack # Configuration for each source type sources: superProductivity: - syncFilePath: ~/.config/superproductivity/__meta_ + syncFilePath: ~/.config/superProductivity/__meta_ plainJson: filePath: /path/to/time-entries.json diff --git a/src/Cli/InitCommand.php b/src/Cli/InitCommand.php index fa4af45..3b57628 100644 --- a/src/Cli/InitCommand.php +++ b/src/Cli/InitCommand.php @@ -27,7 +27,7 @@ class InitCommand extends Command # Configuration for each source type sources: superProductivity: - syncFilePath: ~/.config/superproductivity/__meta_ + syncFilePath: ~/.config/superProductivity/__meta_ plainJson: filePath: /path/to/time-entries.json diff --git a/src/Source/SuperProductivity/Storage.php b/src/Source/SuperProductivity/Storage.php index d92f6fc..0bace40 100644 --- a/src/Source/SuperProductivity/Storage.php +++ b/src/Source/SuperProductivity/Storage.php @@ -21,7 +21,7 @@ */ public function __construct(string $syncMetaPath) { - $this->syncMetaPath = $syncMetaPath; + $this->syncMetaPath = str_replace("~", (string)getenv("HOME"), $syncMetaPath); $this->jsonData = $this->parseJson(); }