From b1a31dd3e1a00ffabcf8d695243f8bcd7e67ba83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sat, 22 Jun 2024 19:44:52 +0100 Subject: [PATCH] window-slot: Don't extract from URI on FileChooser When asked to open the URI leading to an archive file, the slot marks the file for extraction as soon as the view is loaded. In FileChooser modes we wouldn't extract anyway, since activation is handled by the slot. But it would lead to other unexpected results, like immediately sending the file to the portal as result. This is really a corner case but let's avoid it anyway. --- src/nautilus-window-slot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index 91396775d..42db638f4 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1946,7 +1946,7 @@ handle_regular_file_if_needed (NautilusWindowSlot *self, g_clear_object (&self->pending_file_to_activate); self->pending_location = nautilus_file_get_parent_location (file); - if (nautilus_mime_file_extracts (file)) + if (self->mode == NAUTILUS_MODE_BROWSE && nautilus_mime_file_extracts (file)) { self->pending_file_to_activate = nautilus_file_ref (file); }