From ff1fd2476b84122dca721d6978ad3833ccb810ed Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 2 Apr 2026 10:52:17 +0600 Subject: [PATCH 1/3] Fixed autostart services and apps saving and loading --- source/ubinstall-gtk-startup-apps.c | 6 +++--- ubinstall-gtk-service-window.glade | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/ubinstall-gtk-startup-apps.c b/source/ubinstall-gtk-startup-apps.c index a78ed37..1f02074 100644 --- a/source/ubinstall-gtk-startup-apps.c +++ b/source/ubinstall-gtk-startup-apps.c @@ -103,7 +103,7 @@ void yon_startup_apps_init(main_window *widgets){ if (parsed_size&&parsed){ for (int i=0;iStartupAppsList,&iter); - gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,2,parsed[i],4,1,-1); + gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,parsed[i],4,1,-1); } } yon_char_parsed_free(parsed,parsed_size); @@ -123,7 +123,7 @@ void on_startup_app_add_accept(GtkWidget *self, main_window *widgets){ } GtkTreeIter iter; gtk_list_store_append(widgets->StartupAppsList,&iter); - gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,unit,2,app,3,description,4,1,-1); + gtk_list_store_set(widgets->StartupAppsList,&iter,0,1,1,app,2,unit,3,description,4,1,-1); on_subwindow_close(self); } @@ -203,7 +203,7 @@ int yon_startup_app_save(main_window *widgets){ list_size++; char *target; int status; - gtk_tree_model_get(model,&iter,0,&status,2,&target,-1); + gtk_tree_model_get(model,&iter,0,&status,1,&target,-1); if (status){ yon_char_parsed_add_or_create_if_exists(modules,&size,target); } diff --git a/ubinstall-gtk-service-window.glade b/ubinstall-gtk-service-window.glade index c311996..99d90b5 100644 --- a/ubinstall-gtk-service-window.glade +++ b/ubinstall-gtk-service-window.glade @@ -55,7 +55,7 @@ False 5 - + True False Service: @@ -91,7 +91,7 @@ False 5 - + True False Unit: From eb4af89138c29c7a5bfe97f53589a876dc6e30c0 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 2 Apr 2026 10:56:23 +0600 Subject: [PATCH 2/3] Fixed services editing loading --- source/ubinstall-gtk-startup-apps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ubinstall-gtk-startup-apps.c b/source/ubinstall-gtk-startup-apps.c index 1f02074..1146f2f 100644 --- a/source/ubinstall-gtk-startup-apps.c +++ b/source/ubinstall-gtk-startup-apps.c @@ -185,8 +185,8 @@ void on_startup_app_edit(GtkWidget *, main_window *widgets){ startup_service_window *window = yon_startup_app_window_new(); yon_gtk_window_setup(GTK_WINDOW(window->Window),GTK_WINDOW(widgets->MainWindow),APPLICATIONS_EDIT_TITLE_LABEL,icon_path,"app_add_window"); g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(on_startup_app_edit_accept),widgets); - gtk_entry_set_text(GTK_ENTRY(window->UnitEntry),unit); - gtk_entry_set_text(GTK_ENTRY(window->ServiceEntry),app); + gtk_entry_set_text(GTK_ENTRY(window->UnitEntry),app); + gtk_entry_set_text(GTK_ENTRY(window->ServiceEntry),unit); gtk_entry_set_text(GTK_ENTRY(window->DescriptionEntry),description); gtk_widget_show(window->Window); } From 90f4b44a35fb65eacb97903118695d7461e9bc63 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 2 Apr 2026 14:04:00 +0600 Subject: [PATCH 3/3] Fixed loading modules, installed from [modules] for other package/module installation window --- source/ubinstall-gtk-components.c | 26 +++++++++++++++++++++++++- source/ubinstall-gtk-packages.c | 12 ++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-components.c b/source/ubinstall-gtk-components.c index d76673a..9bfe3e0 100644 --- a/source/ubinstall-gtk-components.c +++ b/source/ubinstall-gtk-components.c @@ -453,7 +453,7 @@ gboolean yon_software_insert(struct row_data *row_input){ char *modules_prm = config(modules_parameter); char *modules_param = NULL; if (modules_prm&&!strcmp(modules_prm,"auto")){ - int final_size; + int final_size = 0; config_str final = NULL; for (int i=0;iname,",")){ gtk_widget_set_sensitive(row->InstallCheck,0); @@ -583,6 +595,18 @@ void yon_pacman_init(main_window *widgets){ yon_char_parsed_free(parsed,parsed_size); } modules_packages = yon_char_parsed_to_string(final,final_size,","); + } else if (!yon_char_is_empty(modules_packages)){ + int final_size = 0; + config_str final = NULL; + for (int i=0;i