From 6e92b52a56d208f770528362ccc994cf04272703 Mon Sep 17 00:00:00 2001
From: Kevin Lyda <kevin@lyda.ie>
Date: Tue, 6 May 2025 08:43:44 +0100
Subject: [PATCH] Actually open the bulletin board

---
 accounts/accounts.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/accounts/accounts.go b/accounts/accounts.go
index 126fd7b..7bedc9c 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -56,12 +56,12 @@ func Open(acc string) error {
 		return errors.New("account preference database problem")
 	}
 
-	bulldir := path.Join(xdg.ConfigHome, "BULLETIN")
+	bulldir := path.Join(xdg.DataHome, "BULLETIN")
 	err = os.MkdirAll(bulldir, 0700)
 	if err != nil {
 		return errors.New("bulletin directory problem")
 	}
-	User.bull, err = sql.Open("sqlite", path.Join(bulldir, acc, ".db"))
+	User.bull, err = sql.Open("sqlite", path.Join(bulldir, "bboard.db"))
 	if err != nil {
 		return errors.New("bulletin database problem")
 	}
-- 
GitLab