compatibility with older debian/ubuntu vte

This commit is contained in:
Daniel Micay 2012-05-24 14:46:19 -04:00
parent 0b8d55dac5
commit 980c1c8120
1 changed files with 4 additions and 0 deletions

View File

@ -90,7 +90,11 @@ int main(int argc, char **argv) {
if (argc > 1) {
command_argv = &argv[1];
} else {
#if GTK_CHECK_VERSION (0, 28, 0)
default_argv[0] = vte_get_user_shell();
#else
default_argv[0] = g_strdup(g_getenv("SHELL"));
#endif
if (!default_argv[0]) default_argv[0] = "/bin/sh";
command_argv = default_argv;
}