From 71cee38b0c3cf1053a042f6dceed9102e04a87d5 Mon Sep 17 00:00:00 2001 From: moonD4rk Date: Tue, 6 Jun 2023 18:57:01 +0800 Subject: [PATCH] feat: Add support for Arc browser for macOS --- browser/browser_darwin.go | 8 ++++++++ browser/consts.go | 1 + 2 files changed, 9 insertions(+) diff --git a/browser/browser_darwin.go b/browser/browser_darwin.go index 3447943..9e2a697 100644 --- a/browser/browser_darwin.go +++ b/browser/browser_darwin.go @@ -73,6 +73,12 @@ var ( profilePath: yandexProfilePath, items: item.DefaultYandex, }, + "arc": { + name: arcName, + profilePath: arcProfilePath, + storage: arcStorageName, + items: item.DefaultChromium, + }, } firefoxList = map[string]struct { name string @@ -99,6 +105,7 @@ var ( vivaldiProfilePath = homeDir + "/Library/Application Support/Vivaldi/Default/" coccocProfilePath = homeDir + "/Library/Application Support/Coccoc/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/" ) @@ -113,4 +120,5 @@ const ( vivaldiStorageName = "Vivaldi" coccocStorageName = "CocCoc" yandexStorageName = "Yandex" + arcStorageName = "Arc" ) diff --git a/browser/consts.go b/browser/consts.go index 1fa73d1..b61738b 100644 --- a/browser/consts.go +++ b/browser/consts.go @@ -23,4 +23,5 @@ const ( qqBrowserName = "QQ" dcBrowserName = "DC" sogouName = "Sogou" + arcName = "Arc" )