Files
Ant-Browser/single_instance_state_other.go

17 lines
288 B
Go

//go:build !windows
package main
import (
"ant-chrome/backend"
"path/filepath"
"strings"
)
func singleInstanceStateRoot(appRoot string) string {
if root := strings.TrimSpace(backend.RuntimeStateRoot(appRoot)); root != "" {
return root
}
return filepath.Join(appRoot, "data")
}