diff options
author | daniel <daniel.mohns@posteo.de> | 2019-05-15 21:16:25 +0200 |
---|---|---|
committer | Ernestas Kulik <ekulik@redhat.com> | 2019-08-06 16:08:50 +0200 |
commit | b44aa078d384dd262221307bca41ac88dad1272b (patch) | |
tree | 58c2df52cd60eecad98ef1188f1f469fa12d052f | |
parent | b7eea260cb1bb0917f6323f34d3cb5ec75dbd011 (diff) | |
download | nautilus-b44aa078d384dd262221307bca41ac88dad1272b.tar.gz |
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.
-rw-r--r-- | src/nautilus-files-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index c28441435..f26fdea02 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -5151,7 +5151,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); } |