[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3605 - GNUnet/src/setup/gtk
From: |
durner |
Subject: |
[GNUnet-SVN] r3605 - GNUnet/src/setup/gtk |
Date: |
Wed, 1 Nov 2006 12:13:56 -0800 (PST) |
Author: durner
Date: 2006-11-01 12:13:54 -0800 (Wed, 01 Nov 2006)
New Revision: 3605
Modified:
GNUnet/src/setup/gtk/wizard_gtk.c
Log:
default config file names
Modified: GNUnet/src/setup/gtk/wizard_gtk.c
===================================================================
--- GNUnet/src/setup/gtk/wizard_gtk.c 2006-11-01 19:57:36 UTC (rev 3604)
+++ GNUnet/src/setup/gtk/wizard_gtk.c 2006-11-01 20:13:54 UTC (rev 3605)
@@ -58,6 +58,8 @@
/* 1 = terminate app on "assi_destroy" */
static int quit;
+static int daemon_config;
+
/**
* Destroy the current window (without exiting).
* Also unrefs the current glade XML context.
@@ -375,8 +377,8 @@
const char * prefix;
char * filename;
- GC_get_configuration_value_string(editCfg, "GNUNET-SETUP", "FILENAME", "",
- &filename);
+ GC_get_configuration_value_string(editCfg, "GNUNET-SETUP", "FILENAME",
+ daemon_config ? "/etc/gnunetd.conf" : "~/.gnunet/gnunet.conf", &filename);
if (GC_write_configuration(editCfg, filename)) {
prefix = _("Unable to save configuration file `%s':");
@@ -602,6 +604,7 @@
editCfg = cfg;
err_ctx = ectx;
+ daemon_config = is_daemon;
setLibrary(self);
curwnd = get_xml("assi_step1");
gtk_widget_show(curwnd);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3605 - GNUnet/src/setup/gtk,
durner <=