From 82cc78c617478b48f2c202eab9db3556054cd122 Mon Sep 17 00:00:00 2001 From: moond4rk Date: Fri, 29 Jan 2021 12:54:35 +0800 Subject: [PATCH] add chromium support for macOS --- core/browser_darwin.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/browser_darwin.go b/core/browser_darwin.go index 905ccf6..3cbe3b6 100644 --- a/core/browser_darwin.go +++ b/core/browser_darwin.go @@ -12,6 +12,7 @@ import ( const ( chromeProfilePath = "/Users/*/Library/Application Support/Google/Chrome/*/" chromeBetaProfilePath = "/Users/*/Library/Application Support/Google/Chrome Beta/*/" + chromiumProfilePath = "/Users/*/Library/Application Support/Chromium/*/" edgeProfilePath = "/Users/*/Library/Application Support/Microsoft Edge/*/" fireFoxProfilePath = "/Users/*/Library/Application Support/Firefox/Profiles/*.default-release/" braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/" @@ -23,6 +24,7 @@ const ( const ( chromeStorageName = "Chrome" chromeBetaStorageName = "Chrome" + chromiumStorageName = "Chromium" edgeStorageName = "Microsoft Edge" braveStorageName = "Brave" operaStorageName = "Opera" @@ -48,6 +50,12 @@ var ( Storage: chromeStorageName, New: NewChromium, }, + "chromium": { + ProfilePath: chromiumProfilePath, + Name: chromiumName, + Storage: chromiumStorageName, + New: NewChromium, + }, "edge": { ProfilePath: edgeProfilePath, Name: edgeName,