[nautilus] application: add a compatibility dummy --browser cmdline option
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: add a compatibility dummy --browser cmdline option
- Date: Wed, 7 Dec 2011 16:38:06 +0000 (UTC)
commit c76dc41521c9327a7aa121f35e68e10b6783f740
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Dec 7 11:34:49 2011 -0500
application: add a compatibility dummy --browser cmdline option
External scripts or desktop files from previous might still call
nautilus with the --browser option, and it's bad to just fail in that
case. Add a dummy (and hidden) cmdline option that does nothing for
--browser.
https://bugzilla.gnome.org/show_bug.cgi?id=665700
src/nautilus-application.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 0896873..67f57f1 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -877,6 +877,7 @@ nautilus_application_local_command_line (GApplication *application,
{
gboolean perform_self_check = FALSE;
gboolean version = FALSE;
+ gboolean browser = FALSE;
gboolean kill_shell = FALSE;
gboolean no_default_window = FALSE;
gchar **remaining = NULL;
@@ -887,6 +888,9 @@ nautilus_application_local_command_line (GApplication *application,
{ "check", 'c', 0, G_OPTION_ARG_NONE, &perform_self_check,
N_("Perform a quick set of self-check tests."), NULL },
#endif
+ /* dummy, only for compatibility reasons */
+ { "browser", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &browser,
+ NULL, NULL },
{ "version", '\0', 0, G_OPTION_ARG_NONE, &version,
N_("Show the version of the program."), NULL },
{ "geometry", 'g', 0, G_OPTION_ARG_STRING, &self->priv->geometry,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]