From 366aae7da318acabc76b9a46c9c788cf8cc7a777 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 24 Nov 2023 14:30:42 +0600 Subject: [PATCH] Fixed bug, caused preventing of deleting any log path from monitoring logs --- source/ubl-settings-logging.c | 6 ++++-- source/ubl-utils.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c index f2a6aa2..1bf2e31 100644 --- a/source/ubl-settings-logging.c +++ b/source/ubl-settings-logging.c @@ -1949,14 +1949,16 @@ void on_log_edit(GtkWidget *self,main_window *widgets){ GtkWidget *RemoveButton = yon_gtk_builder_get_widget(builder,"RemoveButton"); if (protectedLogPathsBox),box,0,0,5); last = AppendButton; diff --git a/source/ubl-utils.c b/source/ubl-utils.c index cc174f4..ff83257 100644 --- a/source/ubl-utils.c +++ b/source/ubl-utils.c @@ -1711,7 +1711,7 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end 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("tput cup 0 0 && tput ed; ",command," ; sleep 5;exit 0","\n",NULL); + char *install_command=yon_char_unite("tput cup 0 0 && tput ed; ",command," ; sleep 5; stty -echo; unset PS1","\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),