Skip to content

Pasteable contents in system clipboard block app's internal clipboard #1519

@helmo2019

Description

@helmo2019

Desktop (please complete the following information):

  • OS: Arch Linux
  • OS version: Rolling
  • Tauon Version: 7.9.0
  • Installation method: tauon-music-box AUR package
  • Hyprland 0.48.0 (hyprland Arch Linux package)

Describe the bug
Having anything in the system clipboard that could be pasted (e.g. Spotify or file:// URL) makes it impossible to copy and paste songs around within Tauon. Clearing the clipboard or copying any text that cannot be pasted as tracks into a playlist makes the app's internal clipboard usable again.

To Reproduce
Steps to reproduce the behavior:

  1. Copy a URL into your clipboard (e.g. Spotify playlist URL, local file:// URL)
  2. Paste (Right Click > Paste or CTRL+V) in a playlist in Tauon
  3. Copy any tracks from within Tauon (select & Right Click > Copy or CTRL+C)
  4. Paste again

Expected behavior
The tracks that were copied last are inserted.

Actual behavior
The system clipboard's contents are always chosen if they're an importable URL, regardless
of whether tracks from within Tauon were copied after.

Screenshots/Videos
Showcase Video

Additional notes
My suggestion would be to keep track of what changed last, app's clipboard or system clipboard. System clipboard could be done by storing what it's last contents and comparing with the current contents. Then, out of the clipboards containing valid data, choose the one copied to last.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions