Improvement: allow arguments to be passed to the process launched with the terminal.

This commit is contained in:
Filippo Scognamiglio
2014-12-23 17:07:10 +01:00
parent 23a1033787
commit 9d5896b62c
2 changed files with 21 additions and 11 deletions

View File

@@ -129,9 +129,10 @@ Item{
appSettings.terminalFontChanged.connect(handleFontChange);
// Retrieve the variable set in main.cpp if arguments are passed.
if (shellProgram) {
ksession.setShellProgram(shellProgram);
} else if (!shellProgram && Qt.platform.os === "osx") {
if (defaultCmd) {
ksession.setShellProgram(defaultCmd);
ksession.setArgs(defaultCmdArgs);
} else if (!defaultCmd && Qt.platform.os === "osx") {
// OSX Requires the following default parameters for auto login.
ksession.setArgs(["-i", "-l"]);
}