This commit is contained in:
Daniel Micay 2012-05-23 20:15:25 -04:00
parent df40bdc12b
commit 484fea0cfb
1 changed files with 2 additions and 6 deletions

View File

@ -178,12 +178,8 @@ int main(int argc, char **argv) {
GtkWidget *vte = vte_terminal_new();
char *command_argv[2] = {NULL, NULL};
char *shell = vte_get_user_shell();
if (!shell) shell = "/bin/sh";
command_argv[0] = shell;
char *command_argv[2] = {vte_get_user_shell(), NULL};
if (!command_argv[0]) command_argv[0] = "/bin/sh";
VtePty *pty = vte_terminal_pty_new(VTE_TERMINAL(vte), 0, &error);