diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:59:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:59:37 +0000 |
commit | bb0294a65b2f929503d735a2a1e85612295a4376 (patch) | |
tree | 0491aba2d2376789ff2165f790859e1df8410c28 /debian/patches/mime-actions-Add-all-portal-opened-files-to-recents.patch | |
parent | Adding upstream version 3.38.2. (diff) | |
download | nautilus-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 '')
-rw-r--r-- | debian/patches/mime-actions-Add-all-portal-opened-files-to-recents.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/mime-actions-Add-all-portal-opened-files-to-recents.patch b/debian/patches/mime-actions-Add-all-portal-opened-files-to-recents.patch new file mode 100644 index 0000000..ce5c824 --- /dev/null +++ b/debian/patches/mime-actions-Add-all-portal-opened-files-to-recents.patch @@ -0,0 +1,41 @@ +From: =?utf-8?q?Ant=C3=B3nio_Fernandes?= <antoniof@gnome.org> +Date: Wed, 30 Dec 2020 17:39:12 +0000 +Subject: mime-actions: Add all portal-opened files to recents + +While sandboxed, we add the first file in the queue to recents. + +This has two problems: + +* The file is added to recents even if we fail to launch. +* If opening multiple files, we forget to add the others to recents + +Instead, add each file to recents for each successful launch. + +Origin: upstream, 40.rc, commit:cea4910608a1bf3b6c3603e08f30d5e8b2a96425 +--- + src/nautilus-mime-actions.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c +index c499111..3ef3ae8 100644 +--- a/src/nautilus-mime-actions.c ++++ b/src/nautilus-mime-actions.c +@@ -1518,6 +1518,10 @@ launch_default_for_uris_callback (GObject *source_object, + uri = g_queue_pop_head (params->uris); + + nautilus_launch_default_for_uri_finish (res, &error); ++ if (error == NULL) ++ { ++ gtk_recent_manager_add_item (gtk_recent_manager_get_default (), uri); ++ } + + if (!g_queue_is_empty (params->uris)) + { +@@ -1753,7 +1757,6 @@ activate_files (ActivateParameters *parameters) + async_params->activation_params = parameters; + async_params->uris = g_steal_pointer (&open_in_app_uris); + +- gtk_recent_manager_add_item (gtk_recent_manager_get_default (), uri); + nautilus_launch_default_for_uri_async (uri, + parameters->parent_window, + parameters->cancellable, |