summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2019-03-07 12:23:58 +0100
committerCarlos Soriano <csoriano1618+gnome@gmail.com>2019-03-13 08:47:04 +0000
commit2e38753aed90b2f9d974ba2b6525b1574a64cf6d (patch)
tree73f72d5db0b0c1293a1f618e38a8ee113d08fde4 /build-aux
parent83d2dd197fb13dae2eb05366f965aef17de4a02e (diff)
downloadnautilus-2e38753aed90b2f9d974ba2b6525b1574a64cf6d.tar.gz
flatpak: Add --share=network to fix synchronous gvfs connections
GVfs communicates with daemons over abstract sockets. Currently, synchronous GIO API doesn't work for GVfs locations, because abstract sockets seem to be blocked by sandbox permissions. This is not problem in most cases as Nautilus uses asynchronous API usually. But this breaks e.g. "Empty Trash" functionality as it is for some reason based on synchronous API. In order to fix this problems, it is necessary to allow access to sockets beginning with `unix:abstract=/dbus-vfs-daemon/socket-`, but I am not aware of better way than adding `--share=network`, which allows access to all abstract sockets: http://docs.flatpak.org/en/latest/sandbox-permissions-reference.html#f2 Just a note that it is not clear to me, why it affects only the synchronous API as the asynchronous API also uses abstract sockets. See the corresponding Flatpak bug: https://github.com/flatpak/flatpak/issues/2711
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/flatpak/org.gnome.Nautilus.yml1
-rw-r--r--build-aux/flatpak/org.gnome.NautilusGtk4.yml1
-rw-r--r--build-aux/flatpak/org.gnome.NautilusMaster.yml1
3 files changed, 3 insertions, 0 deletions
diff --git a/build-aux/flatpak/org.gnome.Nautilus.yml b/build-aux/flatpak/org.gnome.Nautilus.yml
index 52f8b4ac3..bcb3e3f93 100644
--- a/build-aux/flatpak/org.gnome.Nautilus.yml
+++ b/build-aux/flatpak/org.gnome.Nautilus.yml
@@ -19,6 +19,7 @@ finish-args:
- "--filesystem=host"
- "--talk-name=org.gtk.vfs"
- "--talk-name=org.gtk.vfs.*"
+- "--share=network"
- "--filesystem=xdg-run/dconf"
- "--filesystem=~/.config/dconf:ro"
- "--talk-name=ca.desrt.dconf"
diff --git a/build-aux/flatpak/org.gnome.NautilusGtk4.yml b/build-aux/flatpak/org.gnome.NautilusGtk4.yml
index 25b80388e..8e649ea10 100644
--- a/build-aux/flatpak/org.gnome.NautilusGtk4.yml
+++ b/build-aux/flatpak/org.gnome.NautilusGtk4.yml
@@ -19,6 +19,7 @@ finish-args:
- "--filesystem=host"
- "--talk-name=org.gtk.vfs"
- "--talk-name=org.gtk.vfs.*"
+- "--share=network"
- "--filesystem=xdg-run/dconf"
- "--filesystem=~/.config/dconf:ro"
- "--talk-name=ca.desrt.dconf"
diff --git a/build-aux/flatpak/org.gnome.NautilusMaster.yml b/build-aux/flatpak/org.gnome.NautilusMaster.yml
index 52f8b4ac3..bcb3e3f93 100644
--- a/build-aux/flatpak/org.gnome.NautilusMaster.yml
+++ b/build-aux/flatpak/org.gnome.NautilusMaster.yml
@@ -19,6 +19,7 @@ finish-args:
- "--filesystem=host"
- "--talk-name=org.gtk.vfs"
- "--talk-name=org.gtk.vfs.*"
+- "--share=network"
- "--filesystem=xdg-run/dconf"
- "--filesystem=~/.config/dconf:ro"
- "--talk-name=ca.desrt.dconf"