Improvement: allow arguments to be passed to the process launched with the terminal.
This commit is contained in:
@@ -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"]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user