aboutsummaryrefslogtreecommitdiffstats
path: root/mail/hydroxide/files/patch-config_config.go
blob: 4d5b5d95927d7e8d98bfe44ffac32bc68f1acb26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- config/config.go.orig	2024-09-23 15:32:25 UTC
+++ config/config.go
@@ -6,12 +6,9 @@ func Path(filename string) (string, error) {
 )
 
 func Path(filename string) (string, error) {
-	configHome, err := os.UserConfigDir()
-	if err != nil {
-		return "", err
-	}
+	configHome := "/var/db/hydroxide"
 
-	p := filepath.Join(configHome, "hydroxide", filename)
+	p := filepath.Join(configHome, filename)
 
 	dirname, _ := filepath.Split(p)
 	if err := os.MkdirAll(dirname, 0700); err != nil {