Attempt to fix browser biometrics not working

This commit is contained in:
Bernd Schoolmann 2024-01-07 23:00:49 +01:00
parent e15cee5aa9
commit 01aca3582f
No known key found for this signature in database

10
main.go
View File

@ -40,11 +40,6 @@ func main() {
ConfigDirectory: configPath,
}
if len(os.Args) > 1 && (strings.Contains(os.Args[1], "com.8bit.bitwarden.json") || strings.Contains(os.Args[1], "chrome-extension://")) {
browserbiometrics.Main(&runtimeConfig)
return
}
home, err := os.UserHomeDir()
if err != nil {
panic(err)
@ -56,6 +51,11 @@ func main() {
runtimeConfig.GoldwardenSocketPath = home + "/.goldwarden.sock"
}
if len(os.Args) > 1 && (strings.Contains(os.Args[1], "com.8bit.bitwarden.json") || strings.Contains(os.Args[1], "chrome-extension://")) {
browserbiometrics.Main(&runtimeConfig)
return
}
_, err = os.Stat("/.flatpak-info")
isFlatpak := err == nil
if isFlatpak {