I am looking for a way to launch a completely independent instance of a program from within a Go program. So far this is my best attempt:
// Some code
go exec.Command("konsole", "--hold", "--separate", "sh", "-e", "go", "run", "test.go")
.Run()
// Continue doing something else then quit
Using linux KDE's Konsole. This command "almost" works - it starts a new Konsole instance and runs the program. But they are dependent: if the first program is ended (ctrl+c), the second also ends. Is there a way to work around this problem?