Replies: 1 comment 1 reply
-
The proposal you commented on (#1259 (comment)) is not the correct one because it involves getting files with the exact same name as the first file you open. There are the following proposals, but they are limited to the folder you opened a file from:
However, as you said, playlist files can have absolute paths, but more importantly can require access to files from different locations. In this case there is no suitable proposal. Mine could possibly include this case, but I need to think about it more. Also note that I am not a developer and each of my proposals requires people to develop them. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking into flathub/org.mixxx.Mixxx#45 regarding importing files referenced from a playlist file into Mixxx's database. As far as I can tell, there is no nice way to handle this use case with the existing file picker portal. Selecting the playlist file (via QFileDialog) works, and the sandboxed application can read the contents of the playlist file, but things get tricky when trying to open the file paths referenced in the playlist file.
There are two distinct cases: the playlist contains relative or absolute paths. In the case of absolute paths, conceivably the application could use the file picker portal to ask for permission for every individual file. This would be annoying and a subpar user experience, especially considering the application just opened the file picker to pick the playlist file immediately before this.
In the case of relative file paths, I don't know if there's any way this can be done currently. The application gets a remapped file path from the portal like
/run/user/1000/doc/8b2a07f4/playlist.m3u8
, so then the application would look for the referenced files in/run/user/1000/doc/8b2a07f4/
, but there are no such files at that path because they haven't been remapped by the portal, nor is there a way to construct their path from the playlist's original, unremapped file path.Beta Was this translation helpful? Give feedback.
All reactions