From 5048cce1ed7979999d55b4b862a43c345a8b0abb Mon Sep 17 00:00:00 2001 From: Cyrus <50967051+Not-Cyrus@users.noreply.github.com> Date: Wed, 2 Dec 2020 19:44:04 -0500 Subject: [PATCH] feat: update browser for windows profile path --- core/browser_windows.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/core/browser_windows.go b/core/browser_windows.go index 3eb70e4..50d6b50 100644 --- a/core/browser_windows.go +++ b/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, + }, } )