Skip to content

Commit

Permalink
fix: exclude macOS lpac empty name card reader
Browse files Browse the repository at this point in the history
  • Loading branch information
creamlike1024 committed Sep 4, 2024
1 parent fe636c0 commit 7a543e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions control.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func RefreshApduDriver() {
if strings.Contains(d.Name, "canokeys.org") || strings.Contains(d.Name, "YubiKey") {
continue
}
// Workaround: lpac shows an empty driver when no card reader inserted under macOS
if d.Name == "" {
continue
}
options = append(options, d.Name)
}
ApduDriverSelect.SetOptions(options)
Expand Down

0 comments on commit 7a543e1

Please sign in to comment.