Skip to content
Snippets Groups Projects
Unverified Commit 6e92b52a authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Actually open the bulletin board

parent 2112f5d8
No related branches found
No related tags found
No related merge requests found
...@@ -56,12 +56,12 @@ func Open(acc string) error { ...@@ -56,12 +56,12 @@ func Open(acc string) error {
return errors.New("account preference database problem") return errors.New("account preference database problem")
} }
bulldir := path.Join(xdg.ConfigHome, "BULLETIN") bulldir := path.Join(xdg.DataHome, "BULLETIN")
err = os.MkdirAll(bulldir, 0700) err = os.MkdirAll(bulldir, 0700)
if err != nil { if err != nil {
return errors.New("bulletin directory problem") 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 { if err != nil {
return errors.New("bulletin database problem") return errors.New("bulletin database problem")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment