Bug 360979

Summary: Kleopatra keeps asking for SC support when it's unavailable and spam the log
Product: [Applications] kleopatra Reporter: Umberto Tozzato <umbertotozzato>
Component: generalAssignee: Andre Heinecke <aheinecke>
Status: CONFIRMED ---    
Severity: normal CC: mutz, pim-bugs-null, umbertotozzato
Priority: NOR    
Version First Reported In: 2.2.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: http://pastebin.com/8pwcnj7F
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Umberto Tozzato 2016-03-25 20:41:44 UTC
When kleo is run, i keep seeing this in KWatchGnuPG:
4 - 2016-03-25 21:33:35 gpg-agent[1577]: handler 0x7ff4435fa700 for fd 5 started
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 -> OK Pleased to meet you, process 1993
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 <- OPTION display=:1
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 -> OK
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 <- SCD SERIALNO
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 -> ERR 67108924 Not supported <GPG Agent>
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 <- BYE
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: DBG: chan_5 -> OK closing connection
  4 - 2016-03-25 21:33:35 gpg-agent[1577]: handler 0x7ff4435fa700 for fd 5 terminated

The spamming stop once kleopatra is closed

Reproducible: Always

Steps to Reproduce:
1. Open Kleopatra
2. Open KWatchGnuPG
3. Profit?
Comment 1 Andre Heinecke 2016-03-29 08:39:18 UTC
Yes kleopatra is actively polling for smartcards. This is wrong it should use a filesystem watch on the smartcard reader status file.

Something I'm planning to fix.