[GH-ISSUE #582] Copy link is not being copied in clipboard. #1275

Closed
opened 2026-03-14 14:12:17 +03:00 by kerem · 1 comment
Owner

Originally created by @nsantiago2719 on GitHub (Oct 24, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/582

Describe the bug
Copying link to clipboard does not work. It is not copying anything.

To Reproduce

  1. select a track
  2. press "g a" to actions
  3. press 5 for copylink

Expected behaviour
it should copy the link in my clipboard but it doesn't

Log and backtrace

2024-10-24T01:47:20.366102Z  INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol
2024-10-24T01:47:20.723993Z  INFO spotify_player::client: No playback found, trying to connect to an available device...
2024-10-24T01:47:20.724090Z  INFO spotify_player: Starting a client socket at 127.0.0.1:8080
2024-10-24T01:47:20.924673Z  INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 200ms
2024-10-24T01:47:20.928029Z  INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 203ms
2024-10-24T01:47:21.114565Z  INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 390ms
2024-10-24T01:47:21.487902Z  INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 763ms
2024-10-24T01:47:21.536535Z  INFO client_request{request=GetUserSavedTracks}: spotify_player::client: Successfully handled the client request, took: 812ms
2024-10-24T01:47:21.787061Z  WARN spotify_player::client: No device found. Please make sure you already setup Spotify Connect support as described in https://github.com/aome510/spotify-player#spotify-connect.
2024-10-24T01:47:21.787081Z  INFO spotify_player::client: Trying to connect to device (id=<device-id>)
2024-10-24T01:47:21.965164Z  INFO spotify_player::client: Connection succeeded (device_id=<device-id>)!
2024-10-24T01:47:23.142827Z  INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("5PirGBr6hiyw1AaNZTVBU3"), position_ms: 190, duration_ms: 203715 }
2024-10-24T01:47:23.952360Z  INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 225ms
2024-10-24T01:47:24.459896Z  INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 99ms
2024-10-24T01:47:24.480226Z  INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5PirGBr6hiyw1AaNZTVBU3"), position_ms: 190, duration_ms: 203715 }
2024-10-24T01:47:24.480442Z  INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5PirGBr6hiyw1AaNZTVBU3"), position_ms: 190, duration_ms: 203715 }
2024-10-24T01:47:25.728557Z  INFO spotify_player::client::handlers: Current context ID (None) is different from the expected ID (Some(Playlist(PlaylistId("<playlist>")))), update the context state
2024-10-24T01:47:25.728600Z  INFO client_request{request=GetContext(Playlist(PlaylistId("<playlist>")))}: spotify_player::client: Get playlist context: spotify:playlist:<playlist>
2024-10-24T01:47:26.257982Z  INFO client_request{request=GetContext(Playlist(PlaylistId("<playlist>")))}: spotify_player::client: Successfully handled the client request, took: 529ms

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • OS: Nobara 40
  • Application version: master branch
  • Application features: pulseaudio-backend,image,lyric-finder,daemon,notify

Additional context
I found that whenever I copy the track link the app freezes but still continues to play. Searched issues and found this #538 which there is a merge request #553 . I cloned the repo and build it using cargo build, did the same method to copy the link and now it is not freezing. Pasting the link though does nothing. Checked my clipboard and it doesn't contain the link too.

Originally created by @nsantiago2719 on GitHub (Oct 24, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/582 **Describe the bug** Copying link to clipboard does not work. It is not copying anything. **To Reproduce** 1. select a track 2. press "g a" to actions 3. press 5 for copylink **Expected behaviour** it should copy the link in my clipboard but it doesn't **Log and backtrace** ``` 2024-10-24T01:47:20.366102Z INFO spotify_player::streaming: Starting an integrated Spotify player using librespot's spirc protocol 2024-10-24T01:47:20.723993Z INFO spotify_player::client: No playback found, trying to connect to an available device... 2024-10-24T01:47:20.724090Z INFO spotify_player: Starting a client socket at 127.0.0.1:8080 2024-10-24T01:47:20.924673Z INFO client_request{request=GetCurrentUser}: spotify_player::client: Successfully handled the client request, took: 200ms 2024-10-24T01:47:20.928029Z INFO client_request{request=GetUserFollowedArtists}: spotify_player::client: Successfully handled the client request, took: 203ms 2024-10-24T01:47:21.114565Z INFO client_request{request=GetUserSavedAlbums}: spotify_player::client: Successfully handled the client request, took: 390ms 2024-10-24T01:47:21.487902Z INFO client_request{request=GetUserPlaylists}: spotify_player::client: Successfully handled the client request, took: 763ms 2024-10-24T01:47:21.536535Z INFO client_request{request=GetUserSavedTracks}: spotify_player::client: Successfully handled the client request, took: 812ms 2024-10-24T01:47:21.787061Z WARN spotify_player::client: No device found. Please make sure you already setup Spotify Connect support as described in https://github.com/aome510/spotify-player#spotify-connect. 2024-10-24T01:47:21.787081Z INFO spotify_player::client: Trying to connect to device (id=<device-id>) 2024-10-24T01:47:21.965164Z INFO spotify_player::client: Connection succeeded (device_id=<device-id>)! 2024-10-24T01:47:23.142827Z INFO spotify_player::streaming: Got a new player event: Paused { track_id: TrackId("5PirGBr6hiyw1AaNZTVBU3"), position_ms: 190, duration_ms: 203715 } 2024-10-24T01:47:23.952360Z INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 225ms 2024-10-24T01:47:24.459896Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 99ms 2024-10-24T01:47:24.480226Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5PirGBr6hiyw1AaNZTVBU3"), position_ms: 190, duration_ms: 203715 } 2024-10-24T01:47:24.480442Z INFO spotify_player::streaming: Got a new player event: Playing { track_id: TrackId("5PirGBr6hiyw1AaNZTVBU3"), position_ms: 190, duration_ms: 203715 } 2024-10-24T01:47:25.728557Z INFO spotify_player::client::handlers: Current context ID (None) is different from the expected ID (Some(Playlist(PlaylistId("<playlist>")))), update the context state 2024-10-24T01:47:25.728600Z INFO client_request{request=GetContext(Playlist(PlaylistId("<playlist>")))}: spotify_player::client: Get playlist context: spotify:playlist:<playlist> 2024-10-24T01:47:26.257982Z INFO client_request{request=GetContext(Playlist(PlaylistId("<playlist>")))}: spotify_player::client: Successfully handled the client request, took: 529ms ``` **Screenshots** If applicable, add screenshots to help explain your problem. **Environment** - OS: Nobara 40 - Application version: master branch - Application features: pulseaudio-backend,image,lyric-finder,daemon,notify **Additional context** I found that whenever I copy the track link the app freezes but still continues to play. Searched issues and found this #538 which there is a merge request #553 . I cloned the repo and build it using cargo build, did the same method to copy the link and now it is not freezing. Pasting the link though does nothing. Checked my clipboard and it doesn't contain the link too.
kerem 2026-03-14 14:12:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@nsantiago2719 commented on GitHub (Oct 24, 2024):

after clearing my clipboard it does now work. seems like clipboard issue and not the spotify_player.

<!-- gh-comment-id:2434183208 --> @nsantiago2719 commented on GitHub (Oct 24, 2024): after clearing my clipboard it does now work. seems like clipboard issue and not the spotify_player.
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-player#1275
No description provided.