Merge pull request 'Fixed exiting after bash terminal end of work' (#30) from YanTheKaller/libublsettings-gtk3:master into master

Reviewed-on: #30
master v1.28
Dmitry Razumov 1 year ago
commit 5020610b2e

@ -53,7 +53,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","\n",NULL);
char *install_command=yon_char_unite("clear;tput cup 0 0 && tput ed && ",command," ; stty -echo; unset PS1;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),
@ -86,8 +86,9 @@ void yon_terminal_integrated_start_shell(GtkWidget *terminal, char* command, voi
}
void __on_yon_terminal_done(GtkWidget *self, void *, GtkWidget *status_box){
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(status_box),"terminal_done","",BACKGROUND_IMAGE_SUCCESS_TYPE);
void __on_yon_terminal_done(GtkWidget *, int state, GtkWidget *status_box){
if (state) yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(status_box),"terminal_done","",BACKGROUND_IMAGE_SUCCESS_TYPE);
else yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(status_box),"terminal_done","",BACKGROUND_IMAGE_FAIL_TYPE);
}
void yon_terminal_window_launch(GtkWindow *parent_window, char *command){

Loading…
Cancel
Save