From 9b04b6edfcbe5b4afc0b7c028001ff1c38e8fcc5 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Sat, 27 Apr 2024 17:48:21 +0700 Subject: [PATCH] config: default download directory is Pictures/redmage --- config/default.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/default.go b/config/default.go index e459689..7229d23 100644 --- a/config/default.go +++ b/config/default.go @@ -1,5 +1,11 @@ package config +import ( + "path" + + "github.com/adrg/xdg" +) + var DefaultConfig = map[string]any{ "flags.containerized": false, @@ -22,7 +28,7 @@ var DefaultConfig = map[string]any{ "download.concurrency.images": 5, "download.concurrency.subreddits": 3, - "download.directory": "", + "download.directory": path.Join(xdg.UserDirs.Pictures, "redmage"), "download.timeout.headers": "10s", "download.timeout.idle": "5s", "download.timeout.idlespeed": "10KB",