From 6f46a970063f548b14a544b0e6cc9d65c1363114 Mon Sep 17 00:00:00 2001 From: Henrik Date: Mon, 16 Nov 2020 15:26:29 +0100 Subject: [PATCH] Add Chrome Beta --- core/browser_windows.go | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/core/browser_windows.go b/core/browser_windows.go index 57975b9..3eb70e4 100644 --- a/core/browser_windows.go +++ b/core/browser_windows.go @@ -12,15 +12,17 @@ import ( ) const ( - chromeProfilePath = "/AppData/Local/Google/Chrome/User Data/*/" - chromeKeyPath = "/AppData/Local/Google/Chrome/User Data/Local State" - edgeProfilePath = "/AppData/Local/Microsoft/Edge/User Data/*/" - edgeKeyPath = "/AppData/Local/Microsoft/Edge/User Data/Local State" - braveProfilePath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/*/" - braveKeyPath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/Local State" - speed360ProfilePath = "/AppData/Local/360chrome/Chrome/User Data/*/" - qqBrowserProfilePath = "/AppData/Local/Tencent/QQBrowser/User Data/*/" - firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-release/" + chromeProfilePath = "/AppData/Local/Google/Chrome/User Data/*/" + chromeKeyPath = "/AppData/Local/Google/Chrome/User Data/Local State" + chromeBetaProfilePath = "/AppData/Local/Google/Chrome Beta/User Data/*/" + chromeBetaKeyPath = "/AppData/Local/Google/Chrome Beta/User Data/Local State" + edgeProfilePath = "/AppData/Local/Microsoft/Edge/User Data/*/" + edgeKeyPath = "/AppData/Local/Microsoft/Edge/User Data/Local State" + braveProfilePath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/*/" + braveKeyPath = "/AppData/Local/BraveSoftware/Brave-Browser/User Data/Local State" + speed360ProfilePath = "/AppData/Local/360chrome/Chrome/User Data/*/" + qqBrowserProfilePath = "/AppData/Local/Tencent/QQBrowser/User Data/*/" + firefoxProfilePath = "/AppData/Roaming/Mozilla/Firefox/Profiles/*.default-release/" ) var ( @@ -37,6 +39,12 @@ var ( Name: chromeName, New: NewChromium, }, + "chrome-beta": { + ProfilePath: os.Getenv("USERPROFILE") + chromeBetaProfilePath, + KeyPath: os.Getenv("USERPROFILE") + chromeBetaKeyPath, + Name: chromeBetaName, + New: NewChromium, + }, "edge": { ProfilePath: os.Getenv("USERPROFILE") + edgeProfilePath, KeyPath: os.Getenv("USERPROFILE") + edgeKeyPath,