feat: add Chromium support for Linux

This commit is contained in:
Carlo Mandelli
2021-01-26 10:54:49 +01:00
committed by ᴍᴏᴏɴD4ʀᴋ
parent fe907881df
commit dba3bac533
4 changed files with 11 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ import (
const (
chromeName = "Chrome"
chromeBetaName = "Chrome Beta"
chromiumName = "Chromium"
edgeName = "Microsoft Edge"
firefoxName = "Firefox"
speed360Name = "360speed"
+8
View File
@@ -13,6 +13,7 @@ import (
const (
fireFoxProfilePath = "/home/*/.mozilla/firefox/*.default-release/"
chromeProfilePath = "/home/*/.config/google-chrome/*/"
chromiumProfilePath = "/home/*/.config/chromium/*/"
edgeProfilePath = "/home/*/.config/microsoft-edge*/*/"
braveProfilePath = "/home/*/.config/BraveSoftware/Brave-Browser/*/"
chromeBetaProfilePath = "/home/*/.config/google-chrome-beta/*/"
@@ -22,6 +23,7 @@ const (
const (
chromeStorageName = "Chrome Safe Storage"
chromiumStorageName = "Chromium Safe Storage"
edgeStorageName = "Chromium Safe Storage"
braveStorageName = "Brave Safe Storage"
chromeBetaStorageName = "Chrome Safe Storage"
@@ -66,6 +68,12 @@ var (
Storage: chromeBetaStorageName,
New: NewChromium,
},
"chromium": {
ProfilePath: chromiumProfilePath,
Name: chromiumName,
Storage: chromiumStorageName,
New: NewChromium,
},
"opera": {
ProfilePath: operaProfilePath,
Name: operaName,