Skip to content

Fix --clipboard not working on wayland#255

Merged
robertknight merged 1 commit into
robertknight:mainfrom
bbb651:wayland-clipboard
Jun 10, 2026
Merged

Fix --clipboard not working on wayland#255
robertknight merged 1 commit into
robertknight:mainfrom
bbb651:wayland-clipboard

Conversation

@bbb651

@bbb651 bbb651 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@robertknight

Copy link
Copy Markdown
Owner

The arboard README says:

Wayland support is not enabled by default because it may be counterintuitive to some users: it relies on the data-control protocol extension(s), which are not supported by all Wayland compositors. You can check compositor support on wayland.app

Looking at support for ext-data-control-v1 and wlr-data-control-unstable-v1 it seems that there is support under KDE (KWin) but not GNOME (Mutter). So, what will happen on a default install of Ubuntu or Fedora?

I suppose the main question I have is: Will enabling Wayland support break clipboard functionality in any environment where it works today, or will it keep those environments working and enable it for additional environments?

@bbb651

bbb651 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

It fallbacks to the x11 clipboard (I haven't tested it though):
https://github.com/1Password/arboard/blob/fd7db42ae6bdb6bb482e2c671192ab45ceb79dd2/src/platform/linux/mod.rs#L142-L145

@robertknight

Copy link
Copy Markdown
Owner

OK, that seems reasonable to me. Thanks for the contribution!

@robertknight robertknight merged commit f11421a into robertknight:main Jun 10, 2026
2 checks 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.

2 participants