From e851bb2f9f67d41549eef729e5fa80c676be884d Mon Sep 17 00:00:00 2001 From: moond4rk Date: Thu, 3 Dec 2020 12:14:54 +0800 Subject: [PATCH] support opera for Linux Close #50 --- core/browser_linux.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/browser_linux.go b/core/browser_linux.go index 71bf504..c21d618 100644 --- a/core/browser_linux.go +++ b/core/browser_linux.go @@ -16,6 +16,7 @@ const ( edgeProfilePath = "/home/*/.config/microsoft-edge*/*/" braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/" chromeBetaProfilePath = "/home/*/.config/google-chrome-beta/*/" + operaProfilePath = "/home/*/.config/opera/" ) const ( @@ -23,6 +24,7 @@ const ( edgeStorageName = "Chromium Safe Storage" braveStorageName = "Brave Safe Storage" chromeBetaStorageName = "Chrome Safe Storage" + operaStorageName = "Chromium Safe Storage" ) var ( @@ -62,6 +64,12 @@ var ( Storage: chromeBetaStorageName, New: NewChromium, }, + "opera": { + ProfilePath: operaProfilePath, + Name: operaName, + Storage: operaStorageName, + New: NewChromium, + }, } )