feat: add chromium support for Windows, Close#62

pull/83/head
moond4rk 4 years ago committed by ᴍᴏᴏɴD4ʀᴋ
parent 82cc78c617
commit d4e933f056
  1. 8
      core/browser_windows.go

@ -17,6 +17,8 @@ const (
chromeKeyPath = "/AppData/Local/Google/Chrome/User Data/Local State" chromeKeyPath = "/AppData/Local/Google/Chrome/User Data/Local State"
chromeBetaProfilePath = "/AppData/Local/Google/Chrome Beta/User Data/*/" chromeBetaProfilePath = "/AppData/Local/Google/Chrome Beta/User Data/*/"
chromeBetaKeyPath = "/AppData/Local/Google/Chrome Beta/User Data/Local State" chromeBetaKeyPath = "/AppData/Local/Google/Chrome Beta/User Data/Local State"
chromiumProfilePath = "/AppData/Local/Chromium/User Data/*/"
chromiumKeyPath = "/AppData/Local/Chromium/User Data/Local State"
edgeProfilePath = "/AppData/Local/Microsoft/Edge/User Data/*/" edgeProfilePath = "/AppData/Local/Microsoft/Edge/User Data/*/"
edgeKeyPath = "/AppData/Local/Microsoft/Edge/User Data/Local State" edgeKeyPath = "/AppData/Local/Microsoft/Edge/User Data/Local State"
braveProfilePath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/*/" braveProfilePath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/*/"
@ -52,6 +54,12 @@ var (
Name: chromeBetaName, Name: chromeBetaName,
New: NewChromium, New: NewChromium,
}, },
"chromium": {
ProfilePath: os.Getenv("USERPROFILE") + chromiumProfilePath,
KeyPath: os.Getenv("USERPROFILE") + chromiumKeyPath,
Name: chromiumName,
New: NewChromium,
},
"edge": { "edge": {
ProfilePath: os.Getenv("USERPROFILE") + edgeProfilePath, ProfilePath: os.Getenv("USERPROFILE") + edgeProfilePath,
KeyPath: os.Getenv("USERPROFILE") + edgeKeyPath, KeyPath: os.Getenv("USERPROFILE") + edgeKeyPath,

Loading…
Cancel
Save