[nautilus] Fix NautilusScripts environment variable in search view
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Fix NautilusScripts environment variable in search view
- Date: Mon, 27 May 2019 10:44:34 +0000 (UTC)
commit 8fdd3792ed4e1fb95e6c4f2adc4c8631c27bb2d3
Author: daniel <daniel mohns posteo de>
Date: Wed May 15 21:16:25 2019 +0200
Fix NautilusScripts environment variable in search view
In search view the directory uri is `x-nautilus-search://N/` and is not
respected by the condition to set `$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`
environment variable.
src/nautilus-files-view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index fc7882374..cbffa2207 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -5185,7 +5185,8 @@ get_strings_for_environment_variables (NautilusFilesView *view,
*/
directory_uri = nautilus_directory_get_uri (priv->model);
if (g_str_has_prefix (directory_uri, "file:") ||
- eel_uri_is_trash (directory_uri))
+ eel_uri_is_trash (directory_uri) ||
+ eel_uri_is_search (directory_uri))
{
*file_paths = get_file_paths_as_newline_delimited_string (view, selected_files);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]