summaryrefslogtreecommitdiffstats
path: root/snap/local/glib-spawn-no-close.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /snap/local/glib-spawn-no-close.patch
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--snap/local/glib-spawn-no-close.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/snap/local/glib-spawn-no-close.patch b/snap/local/glib-spawn-no-close.patch
new file mode 100644
index 0000000..c17900e
--- /dev/null
+++ b/snap/local/glib-spawn-no-close.patch
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# Disable closing file descriptors because the snap confinement has some
+# that it doesn't want us to close
+diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
+index 0d0a07e4b4..d94774868e 100644
+--- a/src/extension/implementation/script.cpp
++++ b/src/extension/implementation/script.cpp
+@@ -904,7 +904,7 @@ int Script::execute (const std::list<std::string> &in_command,
+ try {
+ Glib::spawn_async_with_pipes(working_directory, // working directory
+ argv, // arg v
+- static_cast<Glib::SpawnFlags>(0), // no flags
++ Glib::SPAWN_LEAVE_DESCRIPTORS_OPEN,
+ sigc::slot<void>(),
+ &_pid, // Pid
+ nullptr, // STDIN