mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
chore: unix shell login
This commit is contained in:
@@ -30,7 +30,12 @@ class PtyConnectorFactory {
|
|||||||
envs.putAll(env)
|
envs.putAll(env)
|
||||||
|
|
||||||
val command = database.terminal.localShell
|
val command = database.terminal.localShell
|
||||||
val ptyProcess = PtyProcessBuilder(arrayOf(command))
|
val commands = mutableListOf(command)
|
||||||
|
if (SystemUtils.IS_OS_UNIX) {
|
||||||
|
commands.add("-l")
|
||||||
|
}
|
||||||
|
|
||||||
|
val ptyProcess = PtyProcessBuilder(commands.toTypedArray())
|
||||||
.setEnvironment(envs)
|
.setEnvironment(envs)
|
||||||
.setInitialRows(rows)
|
.setInitialRows(rows)
|
||||||
.setInitialColumns(cols)
|
.setInitialColumns(cols)
|
||||||
|
|||||||
Reference in New Issue
Block a user