From c7ae1ac8a1fcfe71e6011582d09c8deec263bf15 Mon Sep 17 00:00:00 2001 From: Ivan Gantsev Date: Fri, 22 May 2026 23:09:30 +0300 Subject: [PATCH] fix: update SuperProductivity path case and support tilde expansion --- README.md | 2 +- src/Cli/InitCommand.php | 2 +- src/Source/SuperProductivity/Storage.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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(); }