Skip to content

Fix Linux clipboard persistence and enable native Wayland support#110

Merged
lusingander merged 2 commits intolusingander:masterfrom
PiasekDev:clipboard-fix
Dec 7, 2025
Merged

Fix Linux clipboard persistence and enable native Wayland support#110
lusingander merged 2 commits intolusingander:masterfrom
PiasekDev:clipboard-fix

Conversation

@PiasekDev
Copy link
Contributor

On Linux, the arboard documentation notes that the application must maintain ownership of the clipboard selection to serve paste requests. The previous implementation dropped the Clipboard instance immediately after setting the text, causing the ownership to be lost before a paste could occur.

To address this, I enabled the wayland-data-control feature for native Wayland support and moved the Clipboard instance to thread_local storage. This ensures the clipboard data persists as long as the application is running (making the contents available at least until it is closed, then the contents get lost, unless the user has a clipboard manager, which should pickup the contents).

This should be the minimal change required for the clipboard to work, unless we are considering keeping the clipboard in the app state.

I tested the changes on a VM with hyprland and this should also resolve #83 and #107.

@lusingander lusingander merged commit 93d6408 into lusingander:master Dec 7, 2025
8 checks passed
@lusingander
Copy link
Owner

thank you!

@lusingander lusingander linked an issue Dec 7, 2025 that may be closed by this pull request
@PiasekDev PiasekDev deleted the clipboard-fix branch December 7, 2025 02:12
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Dec 15, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [lusingander/serie](https://github.com/lusingander/serie) | patch | `v0.5.5` -> `v0.5.6` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>lusingander/serie (lusingander/serie)</summary>

### [`v0.5.6`](https://github.com/lusingander/serie/releases/tag/v0.5.6)

[Compare Source](lusingander/serie@v0.5.5...v0.5.6)

#### What's Changed

- Fix Linux clipboard persistence and enable native Wayland support by [@&#8203;PiasekDev](https://github.com/PiasekDev) in [#&#8203;110](lusingander/serie#110)
- Support GoToParent action in Detail and UserCommand views by [@&#8203;lusingander](https://github.com/lusingander) in [#&#8203;111](lusingander/serie#111)

#### New Contributors

- [@&#8203;PiasekDev](https://github.com/PiasekDev) made their first contribution in [#&#8203;110](lusingander/serie#110)

**Full Changelog**: <lusingander/serie@v0.5.5...v0.5.6>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40OC4wIiwidXBkYXRlZEluVmVyIjoiNDIuNDguMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
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.

Copy does not work with wl-clipboard on wayland hyprland arch Copy commit hash and short hash functionality does not work in hyprland

2 participants