feat: Add support for Arc browser for macOS

pull/220/head
moonD4rk 1 year ago
parent 0a7f19ab91
commit 71cee38b0c
No known key found for this signature in database
GPG Key ID: 5AB6217E08D39ABA
  1. 8
      browser/browser_darwin.go
  2. 1
      browser/consts.go

@ -73,6 +73,12 @@ var (
profilePath: yandexProfilePath, profilePath: yandexProfilePath,
items: item.DefaultYandex, items: item.DefaultYandex,
}, },
"arc": {
name: arcName,
profilePath: arcProfilePath,
storage: arcStorageName,
items: item.DefaultChromium,
},
} }
firefoxList = map[string]struct { firefoxList = map[string]struct {
name string name string
@ -99,6 +105,7 @@ var (
vivaldiProfilePath = homeDir + "/Library/Application Support/Vivaldi/Default/" vivaldiProfilePath = homeDir + "/Library/Application Support/Vivaldi/Default/"
coccocProfilePath = homeDir + "/Library/Application Support/Coccoc/Default/" coccocProfilePath = homeDir + "/Library/Application Support/Coccoc/Default/"
yandexProfilePath = homeDir + "/Library/Application Support/Yandex/YandexBrowser/Default/" yandexProfilePath = homeDir + "/Library/Application Support/Yandex/YandexBrowser/Default/"
arcProfilePath = homeDir + "/Library/Application Support/Arc/User Data/Default"
firefoxProfilePath = homeDir + "/Library/Application Support/Firefox/Profiles/" firefoxProfilePath = homeDir + "/Library/Application Support/Firefox/Profiles/"
) )
@ -113,4 +120,5 @@ const (
vivaldiStorageName = "Vivaldi" vivaldiStorageName = "Vivaldi"
coccocStorageName = "CocCoc" coccocStorageName = "CocCoc"
yandexStorageName = "Yandex" yandexStorageName = "Yandex"
arcStorageName = "Arc"
) )

@ -23,4 +23,5 @@ const (
qqBrowserName = "QQ" qqBrowserName = "QQ"
dcBrowserName = "DC" dcBrowserName = "DC"
sogouName = "Sogou" sogouName = "Sogou"
arcName = "Arc"
) )

Loading…
Cancel
Save