From f747b598a11d1ce4742ed657dbb949cfd59ddd9c Mon Sep 17 00:00:00 2001 From: beichen <43266206+BeichenDream@users.noreply.github.com> Date: Mon, 28 Nov 2022 23:18:27 +0800 Subject: [PATCH] feat: add sogou and dc browser --- internal/provider/provider.go | 2 ++ internal/provider/provider_windows.go | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 21177ce..3b59766 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -123,4 +123,6 @@ const ( firefoxName = "Firefox" speed360Name = "360speed" qqBrowserName = "QQ" + dcbrowserName = "dcbrowser" + sougouName = "Sougou" ) diff --git a/internal/provider/provider_windows.go b/internal/provider/provider_windows.go index adb3507..812d5a5 100644 --- a/internal/provider/provider_windows.go +++ b/internal/provider/provider_windows.go @@ -73,6 +73,16 @@ var ( profilePath: qqBrowserProfilePath, items: item.DefaultChromium, }, + "dcbrowser": { + name: dcbrowserName, + profilePath: dcbrowserUserDataPath, + items: item.DefaultChromium, + }, + "sougou": { + name: sougouName, + profilePath: dcbrowserUserDataPath, + items: item.DefaultChromium, + }, } firefoxList = map[string]struct { name string @@ -101,6 +111,8 @@ var ( vivaldiProfilePath = homeDir + "/AppData/Local/Vivaldi/User Data/Default/" coccocProfilePath = homeDir + "/AppData/Local/CocCoc/Browser/User Data/Default/" yandexProfilePath = homeDir + "/AppData/Local/Yandex/YandexBrowser/User Data/Default/" + dcbrowserUserDataPath = homeDir + "/AppData/Local/DCBrowser/User Data/Default/" + sougouUserDataPath = homeDir + "/AppData/Roaming/SogouExplorer/Webkit/Default/" firefoxProfilePath = homeDir + "/AppData/Roaming/Mozilla/Firefox/Profiles/" )