mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
17 lines
288 B
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")
|
|
}
|