feat: support opera for Linux Close #50

pull/83/head
moond4rk 4 years ago committed by ᴍᴏᴏɴD4ʀᴋ
parent ee70453b6e
commit 06e79f0dbb
  1. 8
      core/browser_linux.go

@ -16,6 +16,7 @@ const (
edgeProfilePath = "/home/*/.config/microsoft-edge*/*/" edgeProfilePath = "/home/*/.config/microsoft-edge*/*/"
braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/" braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/"
chromeBetaProfilePath = "/home/*/.config/google-chrome-beta/*/" chromeBetaProfilePath = "/home/*/.config/google-chrome-beta/*/"
operaProfilePath = "/home/*/.config/opera/"
) )
const ( const (
@ -23,6 +24,7 @@ const (
edgeStorageName = "Chromium Safe Storage" edgeStorageName = "Chromium Safe Storage"
braveStorageName = "Brave Safe Storage" braveStorageName = "Brave Safe Storage"
chromeBetaStorageName = "Chrome Safe Storage" chromeBetaStorageName = "Chrome Safe Storage"
operaStorageName = "Chromium Safe Storage"
) )
var ( var (
@ -62,6 +64,12 @@ var (
Storage: chromeBetaStorageName, Storage: chromeBetaStorageName,
New: NewChromium, New: NewChromium,
}, },
"opera": {
ProfilePath: operaProfilePath,
Name: operaName,
Storage: operaStorageName,
New: NewChromium,
},
} }
) )

Loading…
Cancel
Save