summaryrefslogtreecommitdiff
path: root/src/nautilus-application.c
diff options
context:
space:
mode:
authorCarlos Soriano <carlos.soriano89@gmail.com>2014-10-13 11:01:19 +0200
committerCarlos Soriano <carlos.soriano89@gmail.com>2014-10-15 16:10:40 +0200
commit0b5db3e2d78eb67499bf1228e1b6789808b3f568 (patch)
tree8bdc3d6da41bf3287f4ad497c23e0aadcc6da53d /src/nautilus-application.c
parentba400638bc7f1846435b6835f27453c62af690d1 (diff)
downloadnautilus-0b5db3e2d78eb67499bf1228e1b6789808b3f568.tar.gz
nautilus-application: Fix commit 2780ce8790fc575ea
In commit 2780ce8790fc575ea we restored the --new-window option, but at the same time we were creating a new window for any glib option like gapplication-service. Instead of that, check for known application options, and if not found any, let gapplication manage them. https://bugzilla.gnome.org/show_bug.cgi?id=738430
Diffstat (limited to 'src/nautilus-application.c')
-rw-r--r--src/nautilus-application.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index d86dc390e..25b2b6762 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -852,10 +852,12 @@ nautilus_application_handle_file_args (NautilusApplication *self,
file = g_file_new_for_commandline_arg (remaining[idx]);
g_ptr_array_add (file_array, file);
}
- } else if (!self->priv->no_default_window &&
- !g_variant_dict_contains (options, "select")) {
+ } else if (g_variant_dict_contains (options, "new-window")) {
file = g_file_new_for_path (g_get_home_dir ());
g_ptr_array_add (file_array, file);
+ } else {
+ /* No options or options that glib already manages */
+ return -1;
}
len = file_array->len;