Skip to content

fix: sync PRIMARY and CLIPBOARD X selections with autocutsel - #8

Merged
jochemwhite merged 1 commit into
mainfrom
fix/cloud-obs-clipboard
Aug 31, 2026
Merged

jochemwhite merged 1 commit into
mainfrom
fix/cloud-obs-clipboard

Conversation

@jochemwhite

Copy link
Copy Markdown
Contributor

Summary

Part of the cloud OBS clipboard fix (companion PRs: streamwizard#209 and one in obs-instance-manager).

The container had no clipboard sync daemon — x11vnc's default cut-text bridging was the entire server-side implementation, and PRIMARY/CLIPBOARD were never mirrored. OBS mixes Qt (CLIPBOARD) and CEF widgets, so pastes intermittently read the selection that was never set.

  • Install autocutsel in the image
  • Run it for both CLIPBOARD and PRIMARY (as app, after openbox) so both selections always agree

Test plan

  • Rebuild image, start instance, copy local text → paste into an OBS text field and into a browser-source URL field (both selection consumers)
  • Copy inside OBS → paste locally
  • bash -n entrypoint.sh passes

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q2ZoWKCoNuPMqr9UJzRuWQ

x11vnc's default cut-text bridging was the only clipboard mechanism in
the container, and nothing mirrored the two X selections. OBS mixes Qt
widgets (CLIPBOARD) with CEF browser docks, so a paste target could read
the selection that was never set - which surfaced as "clipboard randomly
does nothing" in the cloud OBS viewer. Run autocutsel for both
selections so x11vnc's cut-text and every paste target inside OBS agree.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q2ZoWKCoNuPMqr9UJzRuWQ
@jochemwhite
jochemwhite merged commit 6b81870 into main Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant