Unmount on Exit pressed

This commit is contained in:
nelle 2024-02-16 20:11:28 -07:00
parent 3be7d58e6d
commit ba8f5aa8be

View file

@ -29,6 +29,12 @@ class WelcomeWindow private constructor(parent: TApplication, flags: Int) :
addButton("Exit...", CENTERED + 28, CENTERED,
object : TAction() {
override fun DO() {
val unmount =
ProcessBuilder("umount", "/tmp/osda_mount")
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
.redirectError(ProcessBuilder.Redirect.INHERIT)
.start()
.waitFor()
System.exit(0)
}
}