From dd0c106a979baab685487b316bb5743f2e9d6211 Mon Sep 17 00:00:00 2001 From: Rahul Verma Date: Sun, 18 Mar 2018 10:53:15 +0530 Subject: [PATCH] general: Error out if unhandled protocol is entered from CLI or pathbar The solution is to explicitly check for unhandled protocol( including x-nautilus-search) in both cli and pathbar, and error out before even opening the uri. --- src/nautilus-application.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 241c809dc1..5962dc14d0 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -973,8 +973,17 @@ 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_printf(_("error: x-nautilus-search is no longer supported")); + } + else + { + g_ptr_array_add (file_array, file); + } } + } else if (g_variant_dict_contains (options, "new-window")) { -- GitLab