1
0
Fork 0
inkscape/snap/local/glib-spawn-no-close.patch
Daniel Baumann 02d935e272
Adding upstream version 1.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 23:40:13 +02:00

16 lines
944 B
Diff

# 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