app: handle launch method in New function

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-12 20:53:33 +09:00
parent 8223a9ee66
commit b0aff89166
6 changed files with 125 additions and 52 deletions

12
internal/util/early.go Normal file
View File

@@ -0,0 +1,12 @@
package util
import "fmt"
var SdBootedV = func() bool {
if v, err := SdBooted(); err != nil {
fmt.Println("warn: read systemd marker:", err)
return false
} else {
return v
}
}()