From 042511ef9352fca4d86a19bc21bd9f07a2cdacbd Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Fri, 30 Jun 2023 13:57:13 +0600 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-resourcequota.c | 4 ++-- source/ubl-utils.c | 2 +- ubl-settings-resourcequota.glade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/ubl-settings-resourcequota.c b/source/ubl-settings-resourcequota.c index 6276702..08670cc 100644 --- a/source/ubl-settings-resourcequota.c +++ b/source/ubl-settings-resourcequota.c @@ -568,12 +568,12 @@ void main_cbx_2_event() { char* cmd = NULL; if (menu_id >= 0) { cmd = yon_char_unite("systemctl status ", cmd_text_param ," --no-pager", NULL); + puts(cmd); yon_terminal_integrated_launch(widgets->vteInformation, cmd, NULL, NULL); + } if (menu_id >= 0) { free(cmd_text_param); - } - if (menu_id >= 0) { free(cmd); } } diff --git a/source/ubl-utils.c b/source/ubl-utils.c index eb06336..46ff5ad 100644 --- a/source/ubl-utils.c +++ b/source/ubl-utils.c @@ -1236,7 +1236,7 @@ void yon_terminal_integrated_launch(GtkWidget *place_to_show, char* command, voi VtePty *pty = vte_pty_new_sync(VTE_PTY_DEFAULT,NULL,NULL); vte_terminal_set_pty(VTE_TERMINAL(terminal),pty); gtk_container_add(GTK_CONTAINER(place_to_show),terminal); - 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," ;exit 0","\n",NULL); printf("%s\n",install_command); if(endwork_function) g_signal_connect(G_OBJECT(terminal), "child-exited", G_CALLBACK(endwork_function), endwork_function_argument); diff --git a/ubl-settings-resourcequota.glade b/ubl-settings-resourcequota.glade index 30d9472..f7535b9 100644 --- a/ubl-settings-resourcequota.glade +++ b/ubl-settings-resourcequota.glade @@ -3379,7 +3379,7 @@ limit True False - system-reboot-symbolic + emblem-synchronizing-symbolic