From 503a8f57a06fa83aa2844d98fe66768a56abe36a Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 9 Jul 2025 18:01:40 +0600 Subject: [PATCH 1/2] Missing resource opening return value fix --- source/libublsettings-gtk3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libublsettings-gtk3.c b/source/libublsettings-gtk3.c index 9116cb5..a63e2ef 100644 --- a/source/libublsettings-gtk3.c +++ b/source/libublsettings-gtk3.c @@ -103,8 +103,8 @@ void yon_packages_finish(){ config_str yon_resource_open_file(const char *path, int *size){ config_str parsed = NULL; - char *modules; - gsize sz; + char *modules = NULL; + gsize sz=0; GFile *file = g_file_new_for_uri(path); g_file_load_contents(file,NULL,&modules,&sz,NULL,NULL); g_object_unref(G_OBJECT(file)); From 92020a6097d73178462c84d3c3d9fedd7bcc3299 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 10 Jul 2025 17:38:38 +0600 Subject: [PATCH 2/2] fixes --- source/libublsettings-gtk3-vte.c | 2 +- source/libublsettings-gtk3.c | 53 ++++++++++++++++++++++++++++++-- source/libublsettings-gtk3.h | 5 ++- 3 files changed, 55 insertions(+), 5 deletions(-) diff --git a/source/libublsettings-gtk3-vte.c b/source/libublsettings-gtk3-vte.c index 5d958d7..c110b95 100644 --- a/source/libublsettings-gtk3-vte.c +++ b/source/libublsettings-gtk3-vte.c @@ -46,7 +46,7 @@ void yon_terminal_integrated_start_shell(GtkWidget *terminal, char* command, voi vte_terminal_set_size(VTE_TERMINAL(terminal),10,15); VtePty *pty = vte_pty_new_sync(VTE_PTY_DEFAULT,NULL,NULL); vte_terminal_set_pty(VTE_TERMINAL(terminal),pty); - char *install_command=yon_char_unite("clear;tput cup 0 0 && tput ed && ",command," ; stty -echo; unset PS1;exit 0","\n",NULL); + char *install_command=yon_char_unite("clear;tput cup 0 0 && tput ed && ",command," ; stty -echo; unset PS1;exit 0; exit 0","\n",NULL); if(endwork_function) g_signal_connect(G_OBJECT(terminal), "child-exited", G_CALLBACK(endwork_function), endwork_function_argument); vte_terminal_spawn_async(VTE_TERMINAL(terminal), diff --git a/source/libublsettings-gtk3.c b/source/libublsettings-gtk3.c index a63e2ef..18e1f91 100644 --- a/source/libublsettings-gtk3.c +++ b/source/libublsettings-gtk3.c @@ -66,13 +66,13 @@ int yon_packages_init(){ } for (int i=0;i