From cdf08194df94f991f1c373a941f154d99a1f083a Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 26 Mar 2021 09:07:58 +0100 Subject: flatpak: Drop network requirement The network access is no more needed for gvfs support as it currently uses named sockets instead of abstract ones. It is enough to allow access to `xdg-run/gvfsd` folder, where the named sockets reside. I'm not aware of other reasons for allowing network access. Let's drop the network access. This also workarounds "Too many open files" errors caused by leftover sockets (GNOME/gvfs#542). Relates: https://gitlab.gnome.org/GNOME/gvfs/-/issues/515 --- build-aux/flatpak/org.gnome.Nautilus.json | 2 +- build-aux/flatpak/org.gnome.Nautilus.yml | 2 +- build-aux/flatpak/org.gnome.NautilusMaster.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build-aux/flatpak/org.gnome.Nautilus.json b/build-aux/flatpak/org.gnome.Nautilus.json index ac9b215e0..52e6333a7 100644 --- a/build-aux/flatpak/org.gnome.Nautilus.json +++ b/build-aux/flatpak/org.gnome.Nautilus.json @@ -17,7 +17,7 @@ "--filesystem=host", "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*", - "--share=network", + "--filesystem=xdg-run/gvfsd", "--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro", "--talk-name=ca.desrt.dconf", diff --git a/build-aux/flatpak/org.gnome.Nautilus.yml b/build-aux/flatpak/org.gnome.Nautilus.yml index 3c11d5b98..4a15c4c53 100644 --- a/build-aux/flatpak/org.gnome.Nautilus.yml +++ b/build-aux/flatpak/org.gnome.Nautilus.yml @@ -16,7 +16,7 @@ finish-args: - "--filesystem=host" - "--talk-name=org.gtk.vfs" - "--talk-name=org.gtk.vfs.*" -- "--share=network" +- "--filesystem=xdg-run/gvfsd" - "--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 20a21c6e2..bc1771627 100644 --- a/build-aux/flatpak/org.gnome.NautilusMaster.yml +++ b/build-aux/flatpak/org.gnome.NautilusMaster.yml @@ -16,7 +16,7 @@ finish-args: - "--filesystem=host" - "--talk-name=org.gtk.vfs" - "--talk-name=org.gtk.vfs.*" -- "--share=network" +- "--filesystem=xdg-run/gvfsd" - "--filesystem=xdg-run/dconf" - "--filesystem=~/.config/dconf:ro" - "--talk-name=ca.desrt.dconf" -- cgit v1.2.1