|
|
|
|
@ -994,24 +994,32 @@ void *on_config_save(void *data){
|
|
|
|
|
fclose(file);
|
|
|
|
|
char *command = save_config_command(yon_char_parsed_to_string(parameters,size," "));
|
|
|
|
|
yon_char_parsed_free(parameters,size);
|
|
|
|
|
yon_debug_output("$s\n","Entered installation");
|
|
|
|
|
if (system(yon_debug_output("%s\n",command))){
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALL_ERROR);
|
|
|
|
|
yon_debug_output("$s\n","Entered installation failed");
|
|
|
|
|
|
|
|
|
|
g_thread_new("success func",(GThreadFunc)on_install_error,widgets);
|
|
|
|
|
free(command);
|
|
|
|
|
main_config.config_save_thread=NULL;
|
|
|
|
|
main_config.install_thread=0;
|
|
|
|
|
main_config.install_complete=1;
|
|
|
|
|
yon_debug_output("$s\n","Exit installation");
|
|
|
|
|
pthread_exit(NULL);
|
|
|
|
|
return 0;
|
|
|
|
|
};
|
|
|
|
|
yon_debug_output("$s\n","Entered installation success");
|
|
|
|
|
free(command);
|
|
|
|
|
main_config.install_thread=0;
|
|
|
|
|
main_config.install_complete=1;
|
|
|
|
|
yon_debug_output("Install set to: %s\n",yon_char_from_int(main_config.install_complete));
|
|
|
|
|
yon_debug_output("Save state: %s\n",yon_char_from_int(main_config.save_done));
|
|
|
|
|
if (main_config.save_done){
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_COMPLETION);
|
|
|
|
|
yon_debug_output("$s\n","Entered installation page change");
|
|
|
|
|
g_thread_new("success func",(GThreadFunc)on_install_success,widgets);
|
|
|
|
|
}
|
|
|
|
|
main_config.config_save_thread=NULL;
|
|
|
|
|
|
|
|
|
|
yon_debug_output("$s\n","Exit installation");
|
|
|
|
|
pthread_exit(NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1207,6 +1215,13 @@ void *on_install_success(main_window *widgets){
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void *on_install_error(main_window *widgets){
|
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->InstallationLabel),"");
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALL_ERROR);
|
|
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void *on_setup_system_configuration(void *data);
|
|
|
|
|
void *on_setup_system_configuration(void * data){
|
|
|
|
|
yon_debug_output("$s\n","Entered thread");
|
|
|
|
|
|