feat: add sogou and dc browser

pull/182/head
beichen 2 years ago committed by moonD4rk
parent 8d34e72090
commit f747b598a1
  1. 2
      internal/provider/provider.go
  2. 12
      internal/provider/provider_windows.go

@ -123,4 +123,6 @@ const (
firefoxName = "Firefox" firefoxName = "Firefox"
speed360Name = "360speed" speed360Name = "360speed"
qqBrowserName = "QQ" qqBrowserName = "QQ"
dcbrowserName = "dcbrowser"
sougouName = "Sougou"
) )

@ -73,6 +73,16 @@ var (
profilePath: qqBrowserProfilePath, profilePath: qqBrowserProfilePath,
items: item.DefaultChromium, items: item.DefaultChromium,
}, },
"dcbrowser": {
name: dcbrowserName,
profilePath: dcbrowserUserDataPath,
items: item.DefaultChromium,
},
"sougou": {
name: sougouName,
profilePath: dcbrowserUserDataPath,
items: item.DefaultChromium,
},
} }
firefoxList = map[string]struct { firefoxList = map[string]struct {
name string name string
@ -101,6 +111,8 @@ var (
vivaldiProfilePath = homeDir + "/AppData/Local/Vivaldi/User Data/Default/" vivaldiProfilePath = homeDir + "/AppData/Local/Vivaldi/User Data/Default/"
coccocProfilePath = homeDir + "/AppData/Local/CocCoc/Browser/User Data/Default/" coccocProfilePath = homeDir + "/AppData/Local/CocCoc/Browser/User Data/Default/"
yandexProfilePath = homeDir + "/AppData/Local/Yandex/YandexBrowser/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/" firefoxProfilePath = homeDir + "/AppData/Roaming/Mozilla/Firefox/Profiles/"
) )

Loading…
Cancel
Save