clapper icon indicating copy to clipboard operation
clapper copied to clipboard

Flatpak: Cannot drag video file into Clapper

Open vchernin opened this issue 4 years ago • 8 comments

Dragging a video file from Nautilus into the Clapper Flatpak window does nothing.

I expect the video to start playing.

I believe this is a Flatpak issue [1][2][3], if so it could be added to #35. Interestingly the third link says GTK 4 should fix it, but clearly there is more to it.

Distro: Fedora 34 silverblue

vchernin avatar May 13 '21 23:05 vchernin

@vchernin

Dragging a video file from Nautilus into the Clapper Flatpak window does nothing.

It should print you error if you start it from terminal:

flatpak run com.github.rafostar.Clapper

In case of GTK4 both applications between you drag file "from" and "to" has to be made with GTK4. Without GTK4 file manager, you can D&D contents of ~/Videos directory (including sub-directories) or you can also override default Clapper Flatpak permissions to add access to more directories.

Rafostar avatar May 14 '21 07:05 Rafostar

When dragging a video from most directories I indeed get an error.

flatpak run com.github.rafostar.Clapper
(com.github.rafostar.Clapper:2): Clapper-CRITICAL **: 19:20:34.351: file does not exist: /var/home/<user>/<video file>

When I drag a video from ~/Videos no error is produced, and the video plays. So the behaviour is exactly as described.

Thank you clarifying that the "from" app also needs to be GTK4. I wonder if QT 6 and Flutter would also work with the file-transfer portal.

Since there is nothing to fix here, this Clapper issue should probably be closed.

Perhaps it's worth adding a mention of this behaviour to the Clapper wiki?

vchernin avatar May 17 '21 02:05 vchernin

Upstream GTK 3 bug (for Nautilus portal support)

vchernin avatar Jul 18 '21 18:07 vchernin

To clarify for others: either backporting that portal to GTK3 or porting Nautilus to GTK4 will do the trick.

Rafostar avatar Jul 18 '21 20:07 Rafostar

This still doesn't work with Nautilus 43.

AbrarSL avatar Apr 16 '23 11:04 AbrarSL

I tried this with Nautilus 44 as well. It still doesn't work. Can this issue be reopened?

AbrarSL avatar Apr 21 '23 08:04 AbrarSL

Now that it is supported in Nautilus, guess we still miss something to get portal working here, so reopening.

Rafostar avatar Apr 21 '23 11:04 Rafostar

With next version, we will likely move into a playback queue model. So I will try to ensure this is properly implemented then and I will try to change how this works into a way, that one can drag file directly into a position in a queue.

Rafostar avatar Aug 16 '23 18:08 Rafostar

This seems to work correctly now in latest git (pending 0.6.0 version). If still a problem, please reopen.

Rafostar avatar Apr 05 '24 22:04 Rafostar