blob: 944b3b674a25d1c9c77c54a7bc77a18c5decfb20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package app
import (
"os"
"syscall"
"git.thomasvoss.com/euro-cash.eu/pkg/atexit"
. "git.thomasvoss.com/euro-cash.eu/pkg/try"
)
var Debugp bool
func Restart() {
path := Try2(os.Executable())
atexit.Exec()
Try(syscall.Exec(path, append([]string{path}, os.Args[1:]...),
os.Environ()))
}
|