[nautilus/wip/csoriano/destktop-split2: 9/33] application: allow to not have a bus manager
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/destktop-split2: 9/33] application: allow to not have a bus manager
- Date: Tue, 22 Mar 2016 16:35:54 +0000 (UTC)
commit ea27e9b921c4e119be29ae39993f085f16d2f871
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Mar 16 18:17:33 2016 +0100
application: allow to not have a bus manager
Children of nautilus application, like the desktop, could not have a
bus manager, since the owner of the bus is only nautilus.
For that, avoid to access a non existent bus manager, with little
impact on non-desktop code.
src/nautilus-application.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 9bfee01..d1a3dfe 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1201,6 +1201,12 @@ update_dbus_opened_locations (NautilusApplication *self)
g_return_if_fail (NAUTILUS_IS_APPLICATION (self));
priv = nautilus_application_get_instance_private (self);
+
+ /* Children of nautilus application could not handle the dbus, so don't
+ * do anything in that case */
+ if (!priv->fdb_manager)
+ return;
+
for (l = priv->windows; l != NULL; l = l->next) {
window = l->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]