config: default download directory is Pictures/redmage

This commit is contained in:
Tigor Hutasuhut 2024-04-27 17:48:21 +07:00
parent d99e28d997
commit 9b04b6edfc

View file

@ -1,5 +1,11 @@
package config package config
import (
"path"
"github.com/adrg/xdg"
)
var DefaultConfig = map[string]any{ var DefaultConfig = map[string]any{
"flags.containerized": false, "flags.containerized": false,
@ -22,7 +28,7 @@ var DefaultConfig = map[string]any{
"download.concurrency.images": 5, "download.concurrency.images": 5,
"download.concurrency.subreddits": 3, "download.concurrency.subreddits": 3,
"download.directory": "", "download.directory": path.Join(xdg.UserDirs.Pictures, "redmage"),
"download.timeout.headers": "10s", "download.timeout.headers": "10s",
"download.timeout.idle": "5s", "download.timeout.idle": "5s",
"download.timeout.idlespeed": "10KB", "download.timeout.idlespeed": "10KB",