How to restart application by writing kotlin's cod...
# compose-desktop
s
How to restart application by writing kotlin's code?
s
Why are you trying to restart? In general - in order to restart the process, I think you could just run the new process using a Java`ProcessBuilder` and then run
exitProcess(0)
If for some reason that doesn’t work, I’d create another mini application that I’d run in a
ProcessBuilder
. It’d kill the current process, start another, and then kill itself.