mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-15 18:02:58 +08:00
chore: unix shell login
This commit is contained in:
@@ -30,7 +30,12 @@ class PtyConnectorFactory {
|
||||
envs.putAll(env)
|
||||
|
||||
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)
|
||||
.setInitialRows(rows)
|
||||
.setInitialColumns(cols)
|
||||
|
||||
Reference in New Issue
Block a user