summaryrefslogtreecommitdiff
path: root/internal/processor
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-02 17:52:13 +0300
committerPaul Buetow <paul@buetow.org>2026-04-02 17:52:13 +0300
commit11a3e62f17433a7df0e6a77a688321d94a736778 (patch)
treeada0f94c074a3e290ea993179fbf645a40d7ab48 /internal/processor
parentf3d057fec20aeef584cb6340c6a002280a019f15 (diff)
task 003: handle home-dir and APKG marshal errors
Diffstat (limited to 'internal/processor')
-rw-r--r--internal/processor/processor.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/processor/processor.go b/internal/processor/processor.go
index 2343120..5b426bb 100644
--- a/internal/processor/processor.go
+++ b/internal/processor/processor.go
@@ -16,6 +16,7 @@ import (
"codeberg.org/snonux/totalrecall/internal/audio"
"codeberg.org/snonux/totalrecall/internal/batch"
"codeberg.org/snonux/totalrecall/internal/cli"
+ appconfig "codeberg.org/snonux/totalrecall/internal/config"
"codeberg.org/snonux/totalrecall/internal/gui"
"codeberg.org/snonux/totalrecall/internal/image"
"codeberg.org/snonux/totalrecall/internal/phonetic"
@@ -676,7 +677,10 @@ func (p *Processor) RunGUIMode() error {
// Only set OutputDir if it was explicitly provided via flag
// Check if the outputDir is different from the default
- home, _ := os.UserHomeDir()
+ home, err := appconfig.HomeDir()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Warning: %v\n", err)
+ }
defaultOutputDir := filepath.Join(home, "Downloads")
if p.flags.OutputDir != defaultOutputDir {
// User explicitly set a different output directory