[nautilus] application: Ignore --no-desktop if not first launch
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: Ignore --no-desktop if not first launch
- Date: Tue, 9 Jun 2015 09:32:34 +0000 (UTC)
commit bfe878e4313e21b4c539d95a88d243065d30fc2c
Author: Chow Loong Jin <hyperair debian org>
Date: Mon Jun 8 04:55:50 2015 +0800
application: Ignore --no-desktop if not first launch
--no-desktop is an option to allow for running Nautilus under other desktop
environments as well as GNOME without clobbering the foreign desktop
environment's desktop.
https://bugzilla.gnome.org/show_bug.cgi?id=750528
Signed-off-by: Chow Loong Jin <hyperair debian org>
src/nautilus-application.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index f5e32b0..bde2330 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -826,10 +826,14 @@ nautilus_application_command_line (GApplication *application,
g_action_group_activate_action (G_ACTION_GROUP (application),
"open-desktop", NULL);
} else if (g_variant_dict_contains (options, "no-desktop")) {
- DEBUG ("Forcing desktop off, as requested");
- self->priv->desktop_override = TRUE;
- g_action_group_activate_action (G_ACTION_GROUP (application),
- "close-desktop", NULL);
+ if (g_application_get_is_remote (application)) {
+ DEBUG ("Not primary instance. Ignoring --no-desktop.");
+ } else {
+ DEBUG ("Forcing desktop off, as requested");
+ self->priv->desktop_override = TRUE;
+ g_action_group_activate_action (G_ACTION_GROUP (application),
+ "close-desktop", NULL);
+ }
}
if (g_variant_dict_contains (options, "no-default-window")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]