support vivaldi browser Close #51

moond4rk 4 years ago
parent e851bb2f9f
commit 6c5393a772
  1. 1
      core/browser.go
  2. 8
      core/browser_darwin.go
  3. 8
      core/browser_linux.go

@ -20,6 +20,7 @@ const (
braveName = "Brave" braveName = "Brave"
operaName = "Opera" operaName = "Opera"
operaGXName = "OperaGX" operaGXName = "OperaGX"
vivaldiName = "Vivaldi"
) )
type Browser interface { type Browser interface {

@ -17,6 +17,7 @@ const (
braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/" braveProfilePath = "/Users/*/Library/Application Support/BraveSoftware/Brave-Browser/*/"
operaProfilePath = "/Users/*/Library/Application Support/com.operasoftware.Opera/" operaProfilePath = "/Users/*/Library/Application Support/com.operasoftware.Opera/"
operaGXProfilePath = "/Users/*/Library/Application Support/com.operasoftware.OperaGX/" operaGXProfilePath = "/Users/*/Library/Application Support/com.operasoftware.OperaGX/"
vivaldiProfilePath = "/Users/*/Library/Application Support/Vivaldi/*/"
) )
const ( const (
@ -25,6 +26,7 @@ const (
edgeStorageName = "Microsoft Edge" edgeStorageName = "Microsoft Edge"
braveStorageName = "Brave" braveStorageName = "Brave"
operaStorageName = "Opera" operaStorageName = "Opera"
vivaldiStorageName = "Vivaldi"
) )
var ( var (
@ -76,6 +78,12 @@ var (
Storage: operaStorageName, Storage: operaStorageName,
New: NewChromium, New: NewChromium,
}, },
"vivaldi": {
ProfilePath: vivaldiProfilePath,
Name: vivaldiName,
Storage: vivaldiStorageName,
New: NewChromium,
},
} }
) )

@ -17,6 +17,7 @@ const (
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/" operaProfilePath = "/home/*/.config/opera/"
vivaldiProfilePath = "/home/*/.config/vivaldi/*/"
) )
const ( const (
@ -25,6 +26,7 @@ const (
braveStorageName = "Brave Safe Storage" braveStorageName = "Brave Safe Storage"
chromeBetaStorageName = "Chrome Safe Storage" chromeBetaStorageName = "Chrome Safe Storage"
operaStorageName = "Chromium Safe Storage" operaStorageName = "Chromium Safe Storage"
vivaldiStorageName = "Chrome Safe Storage"
) )
var ( var (
@ -70,6 +72,12 @@ var (
Storage: operaStorageName, Storage: operaStorageName,
New: NewChromium, New: NewChromium,
}, },
"vivaldi": {
ProfilePath: vivaldiProfilePath,
Name: vivaldiName,
Storage: vivaldiStorageName,
New: NewChromium,
},
} }
) )

Loading…
Cancel
Save