TildaWindow *parent_window = TILDA_WINDOW(tt->parent_window);
gchar *object_path;
- // Register this object with DBus
+ /* If DBus is not running, leave */
+ if (!dbus_connection)
+ return;
+
+ /* Register this object with DBus */
object_path = g_strdup_printf ("/net/sourceforge/Tilda/Window%d/Terminal%d",
parent_window->number, tt->number);
dbus_g_connection_register_g_object (dbus_connection, object_path, G_OBJECT(tt));