gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20676 - gnunet-gtk/src/gns


From: gnunet
Subject: [GNUnet-SVN] r20676 - gnunet-gtk/src/gns
Date: Thu, 22 Mar 2012 14:15:22 +0100

Author: wachs
Date: 2012-03-22 14:15:22 +0100 (Thu, 22 Mar 2012)
New Revision: 20676

Modified:
   gnunet-gtk/src/gns/gnunet-gns-gtk.c
Log:
- fileopen fix


Modified: gnunet-gtk/src/gns/gnunet-gns-gtk.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk.c 2012-03-22 12:33:58 UTC (rev 20675)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk.c 2012-03-22 13:15:22 UTC (rev 20676)
@@ -237,15 +237,18 @@
   if (GTK_RESPONSE_OK != response_id)
   {
     gtk_widget_destroy (GTK_WIDGET (dialog));
-    g_object_unref (G_OBJECT (builder));
+    g_object_unref (G_OBJECT (dialog));
     return;
   }
   filename = GNUNET_GTK_filechooser_get_filename_utf8 (GTK_FILE_CHOOSER 
(dialog));
   gtk_widget_destroy (GTK_WIDGET (dialog));
-  g_object_unref (G_OBJECT (builder));
+  g_object_unref (G_OBJECT (dialog));
 
   /* FIXME: move to new zone 'filename' */
   fprintf (stderr, "Got zone `%s'\n", filename);
+
+  fork();
+
   GNUNET_free (filename);  
 }
 
@@ -367,6 +370,7 @@
   GtkWidget *dialog;
   char *label;
   char *keyfile;
+  char *servicehome;
 
   gns = GNUNET_malloc (sizeof (struct GNUNET_GNS_Context));
 
@@ -386,6 +390,19 @@
    return;
   }
 
+  if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (get_configuration 
(),
+                                                            "PATHS",
+                                                            "SERVICEHOME",
+                                                            &servicehome))
+  {
+    GNUNET_asprintf(&zonekey_directory, "");
+  }
+  else
+  {
+    GNUNET_asprintf(&zonekey_directory, "%s%s%s",servicehome, 
DIR_SEPARATOR_STR, "gns");
+    GNUNET_free (servicehome);
+  }
+
   /* setup crypto keys */
   if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (get_configuration 
(),
                                                             "gns",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]