Cleanup a bit

This commit is contained in:
nelle 2024-02-16 21:40:29 -07:00
parent f7d4d6858e
commit acb234abe6

View file

@ -93,13 +93,11 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
var usernameDetail = loginField.text var usernameDetail = loginField.text
var serverDetail = serverField.text var serverDetail = serverField.text
//openssh-askpass as well //openssh-askpass as well
val createMntPnt =
ProcessBuilder("mkdir", "/tmp/osda_mount") ProcessBuilder("mkdir", "/tmp/osda_mount")
.redirectOutput(ProcessBuilder.Redirect.INHERIT) .redirectOutput(ProcessBuilder.Redirect.INHERIT)
.redirectError(ProcessBuilder.Redirect.INHERIT) .redirectError(ProcessBuilder.Redirect.INHERIT)
.start() .start()
.waitFor() .waitFor()
val remoteMount =
ProcessBuilder( ProcessBuilder(
"sshfs", "sshfs",
"$usernameDetail@$serverDetail:/home/$usernameDetail", "$usernameDetail@$serverDetail:/home/$usernameDetail",
@ -119,7 +117,6 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
//TODO: https://github.com/winfsp/sshfs-win for sshfs? //TODO: https://github.com/winfsp/sshfs-win for sshfs?
// and https://github.com/git-ecosystem/git-credential-manager/ for askpass???? // and https://github.com/git-ecosystem/git-credential-manager/ for askpass????
// `net use X: \\sshfs\username@servername` // `net use X: \\sshfs\username@servername`
val remoteMount =
ProcessBuilder( ProcessBuilder(
"net", "net",
"use", "use",