|
|
|
@ -285,11 +285,11 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
if (!yon_char_is_empty(file)){
|
|
|
|
if (!yon_char_is_empty(file)){
|
|
|
|
if (!strstr(file,".ini")) file = yon_char_append(file,".ini");
|
|
|
|
if (!strstr(file,".ini")) file = yon_char_append(file,".ini");
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
FILE *source_file = fopen("/lib/ublinux/templates/ublinux-data.ini","r");
|
|
|
|
char *command_creation = ubconfig_file_create(file);
|
|
|
|
FILE *dest_file = fopen(file,"w");
|
|
|
|
system(command_creation);
|
|
|
|
int ch;
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
while ((ch = fgetc(source_file)) != EOF) {
|
|
|
|
yon_ubl_status_box_render(CUSTOM_CONFIG_CREATION_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
fputc(ch, dest_file);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|