feat: update browser for windows profile path

pull/83/head
Cyrus 4 years ago committed by ᴍᴏᴏɴD4ʀᴋ
parent 5d25b52877
commit 5048cce1ed
  1. 24
      core/browser_windows.go

@ -23,6 +23,12 @@ const (
speed360ProfilePath = "/AppData/Local/360chrome/Chrome/User Data/*/"
qqBrowserProfilePath = "/AppData/Local/Tencent/QQBrowser/User Data/*/"
firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-release/"
operaProfilePath = "/AppData/Roaming/Opera Software/Opera Stable/"
operaKeyPath = "/AppData/Roaming/Opera Software/Opera Stable/Local State"
operaGXProfilepath = "/AppData/Roaming/Opera Software/Opera GX Stable/"
operaGXKeyPath = "/AppData/Roaming/Opera Software/Opera GX Stable/Local State"
vivaldiProfilePath = "/AppData/Local/Vivaldi/User Data/Default/"
vivaldiKeyPath = "/AppData/Local/Vivaldi/Local State"
)
var (
@ -72,6 +78,24 @@ var (
Name: braveName,
New: NewChromium,
},
"opera": {
ProfilePath: os.Getenv("USERPROFILE") + operaProfilePath,
KeyPath: os.Getenv("USERPROFILE") + operaKeyPath,
Name: operaName,
New: NewChromium,
},
"operagx": {
ProfilePath: os.Getenv("USERPROFILE") + operaGXProfilepath,
KeyPath: os.Getenv("USERPROFILE") + operaGXKeyPath,
Name: operaGXName,
New: NewChromium,
},
"Vivaldi": {
ProfilePath: os.Getenv("USERPROFILE") + vivaldiProfilePath,
KeyPath: os.Getenv("USERPROFILE") + vivaldiKeyPath,
Name: vivaldiName,
New: NewChromium,
},
}
)

Loading…
Cancel
Save