This commit is contained in:
nelle 2024-02-16 19:59:56 -07:00
parent 37b9cac605
commit 8f66cd8647

View file

@ -56,12 +56,12 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
ProcessBuilder( ProcessBuilder(
"sshfs", "sshfs",
"$usernameDetail@$serverDetail:/home/$usernameDetail", "$usernameDetail@$serverDetail:/home/$usernameDetail",
"/tmp/osda_mount", "/tmp/osda_mount"
"-v"
) )
.redirectOutput(ProcessBuilder.Redirect.INHERIT) .redirectOutput(ProcessBuilder.Redirect.INHERIT)
.redirectError(ProcessBuilder.Redirect.INHERIT) .redirectError(ProcessBuilder.Redirect.INHERIT)
.start().waitFor() .start()
.waitFor()
} }
init { init {
setLayoutManager( setLayoutManager(
@ -82,7 +82,7 @@ class LoginWindow private constructor(parent: TApplication, flags: Int) :
addButton("Back...", CENTERED + 8, CENTERED + 8, addButton("Back...", CENTERED + 8, CENTERED + 8,
object : TAction() { object : TAction() {
override fun DO() { override fun DO() {
TODO("Instead of full program exit, make it close the login window") getParent().close()
} }
} }
) )