Flatpak: Cannot drag video file into Clapper
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
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.
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?
Upstream GTK 3 bug (for Nautilus portal support)
To clarify for others: either backporting that portal to GTK3 or porting Nautilus to GTK4 will do the trick.
This still doesn't work with Nautilus 43.
I tried this with Nautilus 44 as well. It still doesn't work. Can this issue be reopened?
Now that it is supported in Nautilus, guess we still miss something to get portal working here, so reopening.
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.
This seems to work correctly now in latest git (pending 0.6.0 version). If still a problem, please reopen.