feat: add yandex browser for windows, Close #90

pull/116/head
ᴍᴏᴏɴD4ʀᴋ 3 years ago
parent a9f36d6524
commit c92e067ccc
  1. 1
      core/browser.go
  2. 8
      core/browser_windows.go

@ -28,6 +28,7 @@ const (
operaGXName = "OperaGX" operaGXName = "OperaGX"
vivaldiName = "Vivaldi" vivaldiName = "Vivaldi"
coccocName = "CocCoc" coccocName = "CocCoc"
yandexName = "Yandex"
) )
type Browser interface { type Browser interface {

@ -38,6 +38,8 @@ const (
vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State" vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State"
coccocProfilePath = "/AppData/Local/CocCoc/Browser/User Data/Default/" coccocProfilePath = "/AppData/Local/CocCoc/Browser/User Data/Default/"
coccocKeyPath = "/AppData/Local/CocCoc/Browser/Local State" coccocKeyPath = "/AppData/Local/CocCoc/Browser/Local State"
yandexProfilePath = "/AppData/Local/Yandex/YandexBrowser/User Data/Default"
yandexKeyPath = "/AppData/Local/Yandex/YandexBrowser/Local State"
) )
var ( var (
@ -137,6 +139,12 @@ var (
Name: coccocName, Name: coccocName,
New: NewChromium, New: NewChromium,
}, },
"yandex": {
ProfilePath: os.Getenv("USERPROFILE") + yandexProfilePath,
KeyPath: os.Getenv("USERPROFILE") + yandexKeyPath,
Name: yandexName,
New: NewChromium,
},
} }
) )

Loading…
Cancel
Save