Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Grant network access so update checks can reach GitHub (#5189)

Dylan M. Taylor67d4f181795c
diff --git a/packaging/linux/flatpak/ai.storyteller.pdfcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.pdfcraft.bundle.yml
index 10aedeeee..91897d4f1 100644
--- a/packaging/linux/flatpak/ai.storyteller.pdfcraft.bundle.yml
+++ b/packaging/linux/flatpak/ai.storyteller.pdfcraft.bundle.yml
@@ -30,9 +30,10 @@ finish-args:
# passed by path (the command line, Open Recent, "Save" next to the original) work there.
- --filesystem=xdg-documents
- --filesystem=xdg-download
- # Deliberately not granted: network (Flatpak installs update through flatpak, so Help ▸ Check
- # for updates reports that GitHub is unreachable; the optional --control channel listens on
- # 127.0.0.1 inside the sandbox) and home/host filesystem access. No CUPS socket either: printing
+ # Network: Help ▸ Check for updates reaches GitHub. The optional --control channel still listens
+ # on 127.0.0.1 inside the sandbox.
+ - --share=network
+ # Deliberately not granted: home/host filesystem access. No CUPS socket either: printing
# runs the `lp` command (crates/print), which the freedesktop runtime doesn't ship, so Print
# reports that the spooler is unavailable until it goes through the print portal.
modules:
diff --git a/packaging/linux/flatpak/ai.storyteller.pdfcraft.yml b/packaging/linux/flatpak/ai.storyteller.pdfcraft.yml
index 8ae41ae97..9e4579fc1 100644
--- a/packaging/linux/flatpak/ai.storyteller.pdfcraft.yml
+++ b/packaging/linux/flatpak/ai.storyteller.pdfcraft.yml
@@ -31,9 +31,10 @@ finish-args:
# passed by path (the command line, Open Recent, "Save" next to the original) work there.
- --filesystem=xdg-documents
- --filesystem=xdg-download
- # Deliberately not granted: network (Flatpak installs update through flatpak, so Help ▸ Check
- # for updates reports that GitHub is unreachable; the optional --control channel listens on
- # 127.0.0.1 inside the sandbox) and home/host filesystem access. No CUPS socket either: printing
+ # Network: Help ▸ Check for updates reaches GitHub. The optional --control channel still listens
+ # on 127.0.0.1 inside the sandbox.
+ - --share=network
+ # Deliberately not granted: home/host filesystem access. No CUPS socket either: printing
# runs the `lp` command (crates/print), which the freedesktop runtime doesn't ship, so Print
# reports that the spooler is unavailable until it goes through the print portal.
build-options: