Closed AlexandreBonneau closed 7 months ago
Thanks for the report.
This problem is due to sandboxing isolation. Flatpak app is able directly access only files in specific locations. Default Speech Note permissions are only for Desktop, Download, Music, Documents and Videos folders.
You can grand more locations by overriding permissions with flatpak-override. For instance, to allow Speech Note to access your all files and directories under home folder you need to execute the following command:
flatpak override net.mkiol.SpeechNote --filesystem=home
It is worth to mention that this problem does not occur when you use "Open file" menu option because, in this case, the application accesses the file via so called "XDG Portal". Portal generates, on request, a valid temporary file path to a file outside the Flatpak sandbox.
By the way, there is API spec for Drag&Drop via XDG Portal, but it is not implemented yet in QT.
Closing the issue because the root problem is not in Speech Note but in Flatpak "permissions" architecture.
Hello,
first, thank you for this awesome application! I'm using the flatpak 4.3.0 version on Debian Trixie Kde, and unfortunately when trying to drag and drop mp3 directly onto the SpeechNote app, I get a
Error: Couldn't open the file.
error message.Here is the log when trying to drag and drop such file. Do note that the app does have access to that location since I can use the
transcribe file
menu to open it.At first I saw that I had a space in my file path, but I tried placing the file elsewhere (in
~/tmp
), and the bug persists.