Merge pull request #182 from moonD4rk/feat/add-browser

feat: add sogou and dc browser
pull/191/head
ᴍᴏᴏɴD4ʀᴋ 2 years ago committed by GitHub
commit c338f4176a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/provider/provider.go
  2. 12
      internal/provider/provider_windows.go

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

@ -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/"
)

Loading…
Cancel
Save