summaryrefslogtreecommitdiffstats
path: root/debian/patches/mime-actions-Drop-dead-code-path.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:59:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:59:37 +0000
commitbb0294a65b2f929503d735a2a1e85612295a4376 (patch)
tree0491aba2d2376789ff2165f790859e1df8410c28 /debian/patches/mime-actions-Drop-dead-code-path.patch
parentAdding upstream version 3.38.2. (diff)
downloadnautilus-bb0294a65b2f929503d735a2a1e85612295a4376.tar.xz
nautilus-bb0294a65b2f929503d735a2a1e85612295a4376.zip
Adding debian version 3.38.2-1+deb11u1.debian/3.38.2-1+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/mime-actions-Drop-dead-code-path.patch')
-rw-r--r--debian/patches/mime-actions-Drop-dead-code-path.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/debian/patches/mime-actions-Drop-dead-code-path.patch b/debian/patches/mime-actions-Drop-dead-code-path.patch
new file mode 100644
index 0000000..7f4277b
--- /dev/null
+++ b/debian/patches/mime-actions-Drop-dead-code-path.patch
@@ -0,0 +1,55 @@
+From: =?utf-8?q?Ant=C3=B3nio_Fernandes?= <antoniof@gnome.org>
+Date: Wed, 30 Dec 2020 17:41:01 +0000
+Subject: mime-actions: Drop dead code path
+
+Now that the async files opening path is only used while sandboxed,
+the conditions for these if blocks (not being sanboxed) is never met.
+
+Origin: upstream, 40.rc, commit:17285c25834cea9fd7b3fb7b155127db116004af
+---
+ src/nautilus-mime-actions.c | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
+index 46188ad..c499111 100644
+--- a/src/nautilus-mime-actions.c
++++ b/src/nautilus-mime-actions.c
+@@ -90,7 +90,6 @@ typedef struct
+ {
+ ActivateParameters *activation_params;
+ GQueue *uris;
+- GQueue *unhandled_uris;
+ } ApplicationLaunchAsyncParameters;
+
+ /* Microsoft mime types at https://blogs.msdn.microsoft.com/vsofficedeveloper/2008/05/08/office-2007-file-format-mime-types-for-http-content-streaming-2/ */
+@@ -982,7 +981,6 @@ activation_parameters_free (ActivateParameters *parameters)
+ static void
+ application_launch_async_parameters_free (ApplicationLaunchAsyncParameters *parameters)
+ {
+- g_queue_free (parameters->unhandled_uris);
+ g_queue_free (parameters->uris);
+ activation_parameters_free (parameters->activation_params);
+
+@@ -1520,10 +1518,6 @@ launch_default_for_uris_callback (GObject *source_object,
+ uri = g_queue_pop_head (params->uris);
+
+ nautilus_launch_default_for_uri_finish (res, &error);
+- if (!is_sandboxed () && error != NULL && error->code != G_IO_ERROR_CANCELLED)
+- {
+- g_queue_push_tail (params->unhandled_uris, uri);
+- }
+
+ if (!g_queue_is_empty (params->uris))
+ {
+@@ -1535,11 +1529,6 @@ launch_default_for_uris_callback (GObject *source_object,
+ }
+ else
+ {
+- while ((uri = g_queue_pop_head (params->unhandled_uris)) != NULL)
+- {
+- application_unhandled_uri (activation_params, uri);
+- }
+-
+ application_launch_async_parameters_free (params);
+ }
+ }