mirror of
https://github.com/quexten/goldwarden.git
synced 2024-12-25 04:14:02 +03:00
Attempt to fix browser biometrics not working
This commit is contained in:
parent
e15cee5aa9
commit
01aca3582f
10
main.go
10
main.go
@ -40,11 +40,6 @@ func main() {
|
|||||||
ConfigDirectory: configPath,
|
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()
|
home, err := os.UserHomeDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
@ -56,6 +51,11 @@ func main() {
|
|||||||
runtimeConfig.GoldwardenSocketPath = home + "/.goldwarden.sock"
|
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")
|
_, err = os.Stat("/.flatpak-info")
|
||||||
isFlatpak := err == nil
|
isFlatpak := err == nil
|
||||||
if isFlatpak {
|
if isFlatpak {
|
||||||
|
Loading…
Reference in New Issue
Block a user