|
|
|
|
@ -8,15 +8,20 @@ int yon_installation_start(main_window *widgets){
|
|
|
|
|
|
|
|
|
|
void yon_quick_install(GtkWidget *self, main_window *widgets){
|
|
|
|
|
if (!yon_installation_check_packages_size(widgets)) return;
|
|
|
|
|
main_config.save_configured=1;
|
|
|
|
|
gtk_widget_hide(self);
|
|
|
|
|
gtk_widget_show(gtk_widget_get_parent(widgets->InstallationProgress));
|
|
|
|
|
pthread_create(&main_config.install_thread,NULL,on_config_save,widgets);
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION);
|
|
|
|
|
if (!yon_char_is_empty(main_config.config_load_path)){
|
|
|
|
|
char *command = quick_install_command(main_config.config_load_path);
|
|
|
|
|
yon_launch_app_with_arguments(command,NULL);
|
|
|
|
|
if (!main_config.dry_run){
|
|
|
|
|
main_config.save_configured=1;
|
|
|
|
|
gtk_widget_hide(self);
|
|
|
|
|
gtk_widget_show(gtk_widget_get_parent(widgets->InstallationProgress));
|
|
|
|
|
pthread_create(&main_config.install_thread,NULL,on_config_save,widgets);
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION);
|
|
|
|
|
if (!yon_char_is_empty(main_config.config_load_path)){
|
|
|
|
|
char *command = quick_install_command(main_config.config_load_path);
|
|
|
|
|
yon_launch_app_with_arguments(command,NULL);
|
|
|
|
|
}
|
|
|
|
|
yon_page_init(widgets,YON_PAGE_INSTALLATION);
|
|
|
|
|
yon_page_update(widgets);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
yon_launch("ubconfig --source system get /");
|
|
|
|
|
}
|
|
|
|
|
yon_page_init(widgets,YON_PAGE_INSTALLATION);
|
|
|
|
|
yon_page_update(widgets);
|
|
|
|
|
}
|
|
|
|
|
|