feat: support opera for Linux Close #50

This commit is contained in:
moond4rk 2020-12-03 12:14:54 +08:00 committed by ᴍᴏᴏɴD4ʀᴋ
parent ee70453b6e
commit 06e79f0dbb

View File

@ -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,
},
}
)