audacious-media-player / audacious

A lightweight and versatile audio player
https://audacious-media-player.org
Other
801 stars 106 forks source link

File drag-and-drop does not work, warning in gdkselection-wayland.c #1423

Closed iquat closed 1 week ago

iquat commented 1 week ago

Describe the bug While drag-and-drop to VLC works, drag-and-drop to audacious does not work. I tried dragging files from nautilus and nemo file managers.

Steps to reproduce

  1. Open audacious from a terminal with the "audacious" or "audacious -G" command
  2. Open a folder with at least one audio file in a file manager (e.g. nautilus or nemo)
  3. Use the mouse to drag-and-drop one file from the file manager to the playlist area of audacity

Expected behavior I expect that the dragged file gets added to the playlist.

Additional information

(audacious:111878): Gdk-WARNING **: 10:37:49.289: ../../../gdk/wayland/gdkselection-wayland.c:283: error reading selection buffer: Operation was cancelled

audacious-drag-n-drop.txt audacious-drag-n-drop2.txt The above two attachments might be the same, the difference is putting LANG=C before "audoacious -V".

mschwendt commented 1 week ago

JFTR, works here with both Audacious 4.3.1 and 4.4 (either GTK3/Qt6), GNOME Shell on Wayland and Nautilus.

radioactiveman commented 1 week ago

I can reproduce this on Ubuntu with Audacious' GTK interface and the Wayland backend. Gimp was affected by the same problem: https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/927

@mschwendt: Are you sure you don't run Audacious via XWayland?

greatquux commented 6 days ago

using the default xwayland for audacious does not exhibit this problem, only when both are on wayland (insert wayland complaint here)