Unmount on Exit pressed
This commit is contained in:
parent
3be7d58e6d
commit
ba8f5aa8be
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,12 @@ class WelcomeWindow private constructor(parent: TApplication, flags: Int) :
|
||||||
addButton("Exit...", CENTERED + 28, CENTERED,
|
addButton("Exit...", CENTERED + 28, CENTERED,
|
||||||
object : TAction() {
|
object : TAction() {
|
||||||
override fun DO() {
|
override fun DO() {
|
||||||
|
val unmount =
|
||||||
|
ProcessBuilder("umount", "/tmp/osda_mount")
|
||||||
|
.redirectOutput(ProcessBuilder.Redirect.INHERIT)
|
||||||
|
.redirectError(ProcessBuilder.Redirect.INHERIT)
|
||||||
|
.start()
|
||||||
|
.waitFor()
|
||||||
System.exit(0)
|
System.exit(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue