Hello Timo!

The real problem here probably has something to do with gconf....

On Sun, Jun 20, 2010 at 02:22:11PM +0300, Timo Juhani Lindfors wrote:
[...]
> (Details -  1: Could not send message to GConf daemon: The name 
> org.gnome.GConf was not provided by any .service files)
[...]

... but I think emerillon should still not crash. A wild guess led
me towards creating the attached patch. Could you please test it
and see if it solves the crash for you?

--
Regards,
Andreas Henriksson
--- emerillon-0.1.1/emerillon/window.c.orig	2010-06-28 11:24:01.000000000 +0200
+++ emerillon-0.1.1/emerillon/window.c	2010-06-28 11:25:56.000000000 +0200
@@ -164,19 +164,22 @@
   client = geoclue_master_create_client (master, NULL, NULL);
   g_object_unref (master);
 
-  geoclue_master_client_set_requirements (client,
-      GEOCLUE_ACCURACY_LEVEL_COUNTRY, 0, FALSE, GEOCLUE_RESOURCE_ALL, NULL);
-  position = geoclue_master_client_create_position (client, NULL);
-  if (position)
+  if (client)
     {
-      g_object_set_data (G_OBJECT (position), "client", client);
-      geoclue_position_get_position_async (position,
-          (GeocluePositionCallback)position_changed_cb, self);
-    }
-  else
-    {
-      g_object_unref (client);
-      g_object_unref (position);
+      geoclue_master_client_set_requirements (client,
+          GEOCLUE_ACCURACY_LEVEL_COUNTRY, 0, FALSE, GEOCLUE_RESOURCE_ALL, NULL);
+      position = geoclue_master_client_create_position (client, NULL);
+      if (position)
+        {
+          g_object_set_data (G_OBJECT (position), "client", client);
+          geoclue_position_get_position_async (position,
+              (GeocluePositionCallback)position_changed_cb, self);
+        }
+      else
+        {
+          g_object_unref (client);
+          g_object_unref (position);
+        }
     }
 }
 

Reply via email to