[PR #776] [CLOSED] feat: allow clipboard access under wayland #1030

Closed
opened 2026-02-28 14:54:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/776
Author: @xanderio
Created: 3/31/2021
Status: Closed

Base: masterHead: wayland-clipboard


📝 Commits (1)

  • bc8837a feat: allow clipboard access under wayland

📊 Changes

3 files changed (+496 additions, -81 deletions)

View changed files

📝 Cargo.lock (+436 -42)
📝 Cargo.toml (+7 -1)
📝 src/app.rs (+53 -38)

📄 Description

The arbout crate is used to interact with the system clipboard. This
however imposes a dependency on xcb on the crate for Linux/Unix builds.

On a pure Wayland system this is undesirable as interaction with the
system clipboard via xcb in only possible if the user runs a xwayland
server. This cause spotify-cli to require a dependency to a x11 c lib
without providing any functionally to the user.

This change intoduces to new cargo features to spotify-cli: x11 and
wayland.

The x11 feature is the 'old' default feature and will preserve the
current application behavior.

The wayland feature will disable the dependency onto arboard and use
wl-clipboard-rs to interact with the wayland clipboard via the
data_control protocol. This protocol is part of wlroots.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/776 **Author:** [@xanderio](https://github.com/xanderio) **Created:** 3/31/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `wayland-clipboard` --- ### 📝 Commits (1) - [`bc8837a`](https://github.com/Rigellute/spotify-tui/commit/bc8837a159a1b785b21f4b608247ac928394caa9) feat: allow clipboard access under wayland ### 📊 Changes **3 files changed** (+496 additions, -81 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+436 -42) 📝 `Cargo.toml` (+7 -1) 📝 `src/app.rs` (+53 -38) </details> ### 📄 Description The arbout crate is used to interact with the system clipboard. This however imposes a dependency on xcb on the crate for Linux/Unix builds. On a pure Wayland system this is undesirable as interaction with the system clipboard via xcb in only possible if the user runs a xwayland server. This cause spotify-cli to require a dependency to a x11 c lib without providing any functionally to the user. This change intoduces to new cargo features to spotify-cli: `x11` and `wayland`. The `x11` feature is the 'old' default feature and will preserve the current application behavior. The `wayland` feature will disable the dependency onto arboard and use `wl-clipboard-rs` to interact with the wayland clipboard via the `data_control` protocol. This protocol is part of wlroots. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:54:13 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#1030
No description provided.