reformatted
This commit is contained in:
parent
af11439bd5
commit
340a1613bb
|
@ -1480,14 +1480,12 @@ static void exit_with_success(VteTerminal *) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *get_user_shell_with_fallback() {
|
static char *get_user_shell_with_fallback() {
|
||||||
if (const char *env = g_getenv("SHELL") )
|
if (const char *env = g_getenv("SHELL") ) {
|
||||||
{
|
|
||||||
if (!((env != NULL) && (env[0] == '\0')))
|
if (!((env != NULL) && (env[0] == '\0')))
|
||||||
return g_strdup(env);
|
return g_strdup(env);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (char *command = vte_get_user_shell())
|
if (char *command = vte_get_user_shell()) {
|
||||||
{
|
|
||||||
if (!((command != NULL) && (command[0] == '\0')))
|
if (!((command != NULL) && (command[0] == '\0')))
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue