Skip to content

Commit d51dcec

Browse files
committed
fix: docs about chrome profiles
1 parent f0ebec9 commit d51dcec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ https://github.com/Avivbens/alfred-search-bookmark</string>
216216
<true></true>
217217
</dict>
218218
<key>description</key>
219-
<string>Add your profiles separateed by a comma (,). Exists under `/Library/Application Support/Google/Chrome`</string>
219+
<string>Add your profiles separateed by a comma (,). Exists under `~/Library/Application Support/Google/Chrome`. Would be `Profile {number}` or `Default`</string>
220220
<key>label</key>
221221
<string>Profiles to look for</string>
222222
<key>type</key>

src/services/fetch-bookmarks.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { readFile } from 'node:fs/promises'
2+
import { homedir } from 'node:os'
23
import { join } from 'node:path'
34
import { type IBookmark, type IBookmarkRes, type IUIBookmark, Type } from '@models/bookmark.model'
45

56
const BOOKMARKS_PATH = (profiles: string[]): string[] =>
67
profiles.map((profileName) =>
7-
join(process.env.HOME as string, `/Library/Application Support/Google/Chrome/${profileName}/Bookmarks`),
8+
join(homedir(), `/Library/Application Support/Google/Chrome/${profileName}/Bookmarks`),
89
)
910

1011
export async function getBookmarks(profiles: string[]): Promise<IUIBookmark[]> {

0 commit comments

Comments
 (0)