ladishd: when starting apps, always use shell. Fix #179

terminal emulators expect split commandline.
without terminal emulator and without shell, commandline must be split.
This commit is contained in:
Nedko Arnaudov 2011-10-02 16:03:20 +03:00
parent 17e02f89a3
commit f14ff0f10e
1 changed files with 5 additions and 8 deletions

View File

@ -324,16 +324,13 @@ loader_exec_program(
argv[i++] = "-e";
}
if (!run_in_terminal || strchr(commandline, '$') != NULL)
if (!conf_get(LADISH_CONF_KEY_DAEMON_SHELL, argv + i))
{
if (!conf_get(LADISH_CONF_KEY_DAEMON_SHELL, argv + i))
{
argv[i] = LADISH_CONF_KEY_DAEMON_SHELL_DEFAULT;
}
i++;
argv[i++] = "-c";
argv[i] = LADISH_CONF_KEY_DAEMON_SHELL_DEFAULT;
}
i++;
argv[i++] = "-c";
argv[i++] = commandline;
argv[i++] = NULL;