Skip to content

fix(flatpak): read the mount-point picker's real host path via the po… - #24

Merged
t0msk merged 2 commits into
masterfrom
fix/flatpak-mount-point-portal-path
Oct 30, 2026
Merged

t0msk merged 2 commits into
masterfrom
fix/flatpak-mount-point-portal-path

Conversation

@t0msk

@t0msk t0msk commented Oct 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

t0msk added 2 commits October 30, 2026 14:33
…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.
@t0msk
t0msk merged commit 5ce51fa into master Oct 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant