Getting the name of a Process by its PID in kotlin
I am trying to see if a browser process, which i started with playwright, is currently running.
my idea is to get the PID of all processes and then the names via the ID but I dont know how to do that.
I tried to get information of all processes with this
ProcessHandle.allProcesses().forEach { println(it) }
but I only get the PID