aboutsummaryrefslogtreecommitdiff
path: root/internal/bookmarks/bookmarks.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/bookmarks/bookmarks.go')
-rw-r--r--internal/bookmarks/bookmarks.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/internal/bookmarks/bookmarks.go b/internal/bookmarks/bookmarks.go
index ac8926d..55a9e55 100644
--- a/internal/bookmarks/bookmarks.go
+++ b/internal/bookmarks/bookmarks.go
@@ -35,15 +35,7 @@ type Store struct {
// bookmarks.json, mirroring the sigla store) and returns a ready Store. It never
// fails: a missing file simply reads as an empty list.
func Open() *Store {
- base := os.Getenv("XDG_DATA_HOME")
- if base == "" {
- home, err := os.UserHomeDir()
- if err != nil {
- home = "."
- }
- base = filepath.Join(home, ".local", "share")
- }
- return &Store{path: filepath.Join(base, "lectio", "bookmarks.json")}
+ return &Store{path: dataFile("bookmarks.json")}
}
// ParseTags splits a comma-separated tag string into trimmed, non-empty tags.