OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
wayland-compat low occasional DISPUTE

Get Omarchy's clipboard history recording text again

omarchyhyprlandwayland
CORRECTED An auditor found the fix wrong or incomplete and rewrote it. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

The problem and the pkill recovery hold, but two cause details are wrong. First, on 4.0.4-1 capture.sh dispatches text through the case at the end to emit_text, which reads the payload wl-paste --watch hands it on stdin. The only unbounded call on the watcher path is line 13, wl-paste --list-types, which runs before the case. Line 105 (wl-paste --type text) and the timeout-guarded line 99 are only reached by the argument-less snapshot run (Clipboard.qml currentProc), not by the watchers. Issue #9443 itself names line 13 as the call that runs for every invocation. Second, #9443 is no longer open: it was closed on 2026-10-05 by PR #9488 (commit b9e0ac4f, "Prevent clipboard capture hangs"), which wraps both reads in timeout 2s on quattro. The latest release is still v4.0.4 (2026-09-15), so installed systems keep the bug until the next release. Watcher command lines confirmed in Clipboard.qml lines 285 and 294 and in ps on this machine. capture.sh starts with #!/bin/bash, so the stuck child's argv begins /bin/bash, as the issue's ps output shows, and the anchored pkill pattern matches only children. Not exercised: no stuck process existed to kill.

The cause above was rewritten on 2026-10-05 to match this note; the fix was corrected by the audit itself.

Symptom

Things I copy as text stopped showing up in the clipboard manager (Super+Ctrl+V). Screenshots and copied images still appear, so the history is not empty, it just has none of my text from the last day or two. Copy and paste itself still works. Nothing in the logs.

Cause

Omarchy's shell runs two wl-paste --watch watchers, one for text and one for image/png, each calling /usr/share/omarchy/shell/plugins/clipboard/capture.sh (Clipboard.qml lines 285 and 294). wl-paste --watch waits for its command to exit before handling the next clipboard event. On 4.0.4-1, capture.sh line 13 runs wl-paste --list-types with no timeout, before the case that hands the watcher's stdin payload to emit_text, so it runs on every text event. wl-paste blocks indefinitely when the clipboard owner disappears mid-transfer, so one bad copy leaves a capture.sh text process alive for days and every later text copy is dropped. Line 105 (wl-paste --type text, also unbounded) is only reached by the snapshot run the shell makes at start, not by the watchers. Reported as omacom/omarchy#9443 and fixed on the quattro branch on 2026-10-05 by PR #9488, which bounds both reads with timeout 2s. That fix is not in v4.0.4, the latest release at the time of checking.

Fix

Find the stuck capture process. It is a bash child, not the wl-paste watcher:


ps -eo pid,etime,args | grep '[c]lipboard/capture.sh'
# wl-paste --type text --watch .../clipboard/capture.sh text      <- watcher, leave it
# /bin/bash .../shell/plugins/clipboard/capture.sh text            <- stuck, long ETIME

Kill only the bash children. The pattern is anchored on /bin/bash because the watcher's own command line also contains capture.sh text, and an unanchored pkill -f would kill the watcher too:


pkill -f '^/bin/bash .*/clipboard/capture.sh'

Text capture resumes immediately. No shell restart is needed.

It can recur on 4.0.4 and earlier. The permanent fix (PR #9488, timeout 2s on both wl-paste reads) is merged upstream and arrives with the first release after v4.0.4 through omarchy update. Check whether your installed copy has it:


grep -n 'timeout 2s wl-paste --list-types' /usr/share/omarchy/shell/plugins/clipboard/capture.sh

No output means you still have the unbounded version.

Verify

Copy some text, open Super+Ctrl+V, and the new entry is at the top. ps -eo pid,etime,args | grep '[c]lipboard/capture.sh' shows only the two wl-paste watchers.

Sources

omarchy-clipboard-history-stops-recording-text