mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-03-20 17:48:46 +00:00
Fix: autologin the shell under OSX.
This commit is contained in:
parent
5ea8bec0cf
commit
17f37b48e7
@ -127,8 +127,13 @@ Item{
|
|||||||
appSettings.terminalFontChanged.connect(handleFontChange);
|
appSettings.terminalFontChanged.connect(handleFontChange);
|
||||||
|
|
||||||
// Retrieve the variable set in main.cpp if arguments are passed.
|
// Retrieve the variable set in main.cpp if arguments are passed.
|
||||||
if (shellProgram)
|
if (shellProgram) {
|
||||||
ksession.setShellProgram(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)
|
if (workdir)
|
||||||
ksession.initialWorkingDirectory = workdir;
|
ksession.initialWorkingDirectory = workdir;
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b003cff04f5891abe15086e946a0630e66efb242
|
Subproject commit 71f2f3f9f0db5ad42e7b39596e968be110e70267
|
Loading…
x
Reference in New Issue
Block a user