GNOME Bugzilla – Bug 783088
Flatpak should have read access to open shape layer files
Last modified: 2017-08-20 20:34:33 UTC
Currently, when Maps runs as a Flatpak it doesn't have access to the local file system. This means that opening shape layer files (GPX, KML et.c.) is tricky (you need to put them in the directories visible in the sandbox). We should probably grant access to more (I think it should be possible to restrict to read-only). Maybe the whole home directory, or possibly a narrower selection.
According to csoriano's and mclasen's valuable help on IRC, using a GtkFileChooserNative should give us the desired behaviour (via the portal stuff).
Created attachment 354127 [details] [review] mainWindow: Use GtkFileChooserNative for open dialog Use the GtkFileChooseNative dialog for the open shape layer dialog. This should enable opening files when running as a Flatpak.
Created attachment 358032 [details] [review] mainWindow: Use GtkFileChooserNative for open dialog Use the GtkFileChooseNative dialog for the open shape layer dialog. This should enable opening files when running as a Flatpak.
Attachment 358032 [details] pushed as 84480af - mainWindow: Use GtkFileChooserNative for open dialog