cleanup
This commit is contained in:
parent
df40bdc12b
commit
484fea0cfb
|
@ -178,12 +178,8 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
GtkWidget *vte = vte_terminal_new();
|
GtkWidget *vte = vte_terminal_new();
|
||||||
|
|
||||||
char *command_argv[2] = {NULL, NULL};
|
char *command_argv[2] = {vte_get_user_shell(), NULL};
|
||||||
|
if (!command_argv[0]) command_argv[0] = "/bin/sh";
|
||||||
char *shell = vte_get_user_shell();
|
|
||||||
if (!shell) shell = "/bin/sh";
|
|
||||||
|
|
||||||
command_argv[0] = shell;
|
|
||||||
|
|
||||||
VtePty *pty = vte_terminal_pty_new(VTE_TERMINAL(vte), 0, &error);
|
VtePty *pty = vte_terminal_pty_new(VTE_TERMINAL(vte), 0, &error);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue