Drop pbpaste trace log that fires whenever the macOS pasteboard is empty

This commit is contained in:
Viktor Liu
2026-05-19 15:24:45 +02:00
parent b1b04f9ec6
commit df9a6fb020

View File

@@ -564,7 +564,7 @@ func (m *MacInputInjector) GetClipboard() string {
}
out, err := exec.Command(m.pbpastePath).Output()
if err != nil {
log.Tracef("get clipboard via pbpaste: %v", err)
// pbpaste exits 1 when the pasteboard has no string flavour.
return ""
}
return string(out)