Fix review findings: dual-entry image capture, image blob GC at limit, stdin drain, fuzzy query edge cases, uri encoding, GC queue, temp-file pruning, theme border widths

This commit is contained in:
2026-09-05 15:43:33 +01:00
parent 44808ffd2c
commit 63a003e4a5
11 changed files with 73 additions and 41 deletions
+8 -1
View File
@@ -99,6 +99,7 @@ def capture_image(types, app):
pass
return
emit(entry)
return True
def decode_text(data):
@@ -159,7 +160,13 @@ def capture_text(types, app):
def main():
sys.stdin.close() # watcher payload unused; we probe ourselves
# The watcher pipes the clipboard payload to us; wl-clipboard blocks on
# writes if we close the pipe early, so drain it instead (we still probe
# types ourselves below).
try:
sys.stdin.buffer.read()
except Exception:
pass
types = list_types()
if not types:
return