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 serverDetail = serverField.text
//openssh-askpass as well
val createMntPnt =
ProcessBuilder("mkdir", "/tmp/osda_mount")
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
.redirectError(ProcessBuilder.Redirect.INHERIT)
.start()
.waitFor()
val remoteMount =
ProcessBuilder(
"sshfs",
"$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?
// and https://github.com/git-ecosystem/git-credential-manager/ for askpass????
// `net use X: \\sshfs\username@servername`
val remoteMount =
ProcessBuilder(
"net",
"use",