feat: Add support for Arc browser for macOS

This commit is contained in:
moonD4rk
2023-06-06 18:57:01 +08:00
parent 0a7f19ab91
commit 71cee38b0c
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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"
) )
+1
View File
@@ -23,4 +23,5 @@ const (
qqBrowserName = "QQ" qqBrowserName = "QQ"
dcBrowserName = "DC" dcBrowserName = "DC"
sogouName = "Sogou" sogouName = "Sogou"
arcName = "Arc"
) )