GTK4 DragSource: listening to `drag-end` when moving files between applications

I’m currently implementing Drag-and-drop with GFiles in my application, using the MOVE DragAction. The documentation is very clear about needing to listen to the drag-end signal to delete the file after the drag completes. However, when dragging the file between applications (I’m using Nautilus for testing), everything seems to work as expected if I don’t listen to that signal. In fact, if I listen to it and delete on completion, sometimes the file is gone by the time the other application receives it. Things like cancelling the move from Nautilus don’t work either: drag-end is triggered regardless.

Does the documentation warning only apply to moves within the same application? If so, how do I detect that?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.