summaryrefslogtreecommitdiffstats
path: root/snap/local/glib-spawn-no-close.patch
blob: c17900e098d9e89988e7ce741ef80b831ea289db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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