From d4e933f0563a8bf09126b3d5bf757aa7d06aaea4 Mon Sep 17 00:00:00 2001 From: moond4rk Date: Fri, 29 Jan 2021 12:55:29 +0800 Subject: [PATCH] feat: add chromium support for Windows, Close#62 --- core/browser_windows.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/browser_windows.go b/core/browser_windows.go index ff55833..d14de60 100644 --- a/core/browser_windows.go +++ b/core/browser_windows.go @@ -17,6 +17,8 @@ const ( 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" + chromiumProfilePath = "/AppData/Local/Chromium/User Data/*/" + chromiumKeyPath = "/AppData/Local/Chromium/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/*/" @@ -52,6 +54,12 @@ var ( Name: chromeBetaName, New: NewChromium, }, + "chromium": { + ProfilePath: os.Getenv("USERPROFILE") + chromiumProfilePath, + KeyPath: os.Getenv("USERPROFILE") + chromiumKeyPath, + Name: chromiumName, + New: NewChromium, + }, "edge": { ProfilePath: os.Getenv("USERPROFILE") + edgeProfilePath, KeyPath: os.Getenv("USERPROFILE") + edgeKeyPath,