Fix: autologin the shell under OSX.

This commit is contained in:
Filippo Scognamiglio 2014-12-21 16:19:23 +01:00
parent 5ea8bec0cf
commit 17f37b48e7
2 changed files with 7 additions and 2 deletions

View File

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

@ -1 +1 @@
Subproject commit b003cff04f5891abe15086e946a0630e66efb242
Subproject commit 71f2f3f9f0db5ad42e7b39596e968be110e70267