summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 202ba1322..915a1e9d9 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -984,7 +984,20 @@ nautilus_application_handle_file_args (NautilusApplication *self,
file = g_file_new_for_commandline_arg_and_cwd (remaining[idx], cwd);
g_free (cwd);
}
- g_ptr_array_add (file_array, file);
+
+ if (nautilus_is_search_directory (file))
+ {
+ g_autofree char *error_string = NULL;
+ error_string = g_strdup_printf (_("ā€œ%sā€ is an internal protocol. "
+ "Opening this location directly is not supported."),
+ EEL_SEARCH_URI);
+
+ g_printerr ("%s\n", error_string);
+ }
+ else
+ {
+ g_ptr_array_add (file_array, file);
+ }
}
}
else if (g_variant_dict_contains (options, "new-window"))