After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783088 - Flatpak should have read access to open shape layer files
Flatpak should have read access to open shape layer files
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-25 12:19 UTC by Marcus Lundblad
Modified: 2017-08-20 20:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mainWindow: Use GtkFileChooserNative for open dialog (935 bytes, patch)
2017-06-20 21:00 UTC, Marcus Lundblad
none Details | Review
mainWindow: Use GtkFileChooserNative for open dialog (1.29 KB, patch)
2017-08-20 20:33 UTC, Marcus Lundblad
committed Details | Review

Description Marcus Lundblad 2017-05-25 12:19:40 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.
Comment 1 Marcus Lundblad 2017-06-08 20:03:15 UTC
According to csoriano's and mclasen's valuable help on IRC, using a GtkFileChooserNative should give us the desired behaviour (via the portal stuff).
Comment 2 Marcus Lundblad 2017-06-20 21:00:22 UTC
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.
Comment 3 Marcus Lundblad 2017-08-20 20:33:46 UTC
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.
Comment 4 Marcus Lundblad 2017-08-20 20:34:29 UTC
Attachment 358032 [details] pushed as 84480af - mainWindow: Use GtkFileChooserNative for open dialog