173 |
FILE *Lfic; |
FILE *Lfic; |
174 |
gchar *Ltmp; |
gchar *Ltmp; |
175 |
if (!get_config_file(W_OK)) return FALSE; |
if (!get_config_file(W_OK)) return FALSE; |
176 |
|
g_warning("le conf => %s\n", Gfileconf); |
177 |
if (!(Lfic=fopen(Gfileconf, "w"))) { |
if (!(Lfic=fopen(Gfileconf, "w"))) { |
178 |
Ltmp = g_strdup_printf(_("Cannot create %s: %s"), Gfileconf, g_strerror(errno)); |
Ltmp = g_strdup_printf(_("Cannot create %s: %s"), Gfileconf, g_strerror(errno)); |
179 |
g_set_error(Aerror, G_FILE_ERROR, g_file_error_from_errno(errno), Ltmp, g_strerror(errno)); |
g_set_error(Aerror, G_FILE_ERROR, g_file_error_from_errno(errno), Ltmp, g_strerror(errno)); |
231 |
|
|
232 |
/* parametre -c sur la ligne de commande */ |
/* parametre -c sur la ligne de commande */ |
233 |
if ((Lpath = param_get_string("config_file"))) { |
if ((Lpath = param_get_string("config_file"))) { |
234 |
Llistpath = g_strsplit(Lenv, ":", 0); |
Llistpath = g_strsplit(Lpath, ":", 0); |
235 |
|
|
236 |
for (i=0; Llistpath[i]; i++) { |
for (i=0; Llistpath[i]; i++) { |
237 |
if (!*Llistpath[i]) continue; /* on ignore les entrees vides */ |
if (!*Llistpath[i]) continue; /* on ignore les entrees vides */ |