Repository navigation
fix(flatpak): read the mount-point picker's real host path via the po… - #24
Merged
Merged
Conversation
…rtal MountPointField's "Browse..." button (bind mounts, where the target directory already exists on the host) went through tauri-plugin-dialog's native GTK chooser, which stores pick_directory's result straight into the mount point field with no translation. Under Flatpak, with no --filesystem= grant in the manifest, GTK's own portal integration resolves a picked folder through the Document Portal's ephemeral per-session path (/run/user/$UID/doc/<id>/<name>) rather than the real host path - useless as an fstab mount point, since that path exists nowhere outside the one sandboxed session, let alone at boot when the kernel reads /etc/fstab with no Flatpak runtime involved at all (flathub/flathub#10723). org.freedesktop.portal.FileChooser's own D-Bus response does not have this problem - its uris carry the real host path directly - so pick_directory now talks to the portal via ashpd instead of going through GTK's chooser, and tauri-plugin-dialog (used for nothing else) is dropped entirely. Linux-only project (fstab is a Linux concept), so no other-platform fallback is needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.