diff options
author | António Fernandes <antoniof@gnome.org> | 2020-05-12 00:41:36 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2021-01-25 10:54:11 +0000 |
commit | 078603d269e5fb684ed400bb9bb324b16ced9eef (patch) | |
tree | 6c41cc3d7948e6665f049a16eb7afdb8bc6a6f3f | |
parent | be2b5cc3354283e58fdc793b38dab35750b0efbc (diff) | |
download | nautilus-078603d269e5fb684ed400bb9bb324b16ced9eef.tar.gz |
files-view: Support FUSE paths as script parameters
The scripts in the Scripts menu are passed the (possibly relative)
local paths to selected files as command line parameters.
The relative paths can only work if the current directory itself has a
local path that we can chdir into, and, for backwards compatibility,
don't pass URIs.
For that reason we pass no parameters if nautilus_file_is_local()
returns FALSE for any of them. [1]
However, it returns FALSE for files in FUSE mounts, which have
perfectly usable local paths.
So, use nautilus_file_is_local_or_fuse() instead.
-rw-r--r-- | src/nautilus-files-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index a36209073..b5784d183 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -5143,7 +5143,7 @@ get_file_names_as_parameter_array (GList *selection, { file = NAUTILUS_FILE (node->data); - if (!nautilus_file_is_local (file)) + if (!nautilus_file_is_local_or_fuse (file)) { parameters[i] = NULL; g_strfreev (parameters); |