//+build !android package main import ( "os" "path/filepath" "gioui.org/io/event" ) var ( startpath="." ) // sessionFilePath is where the relaunch session file (spec ยง7) lives, off // Android: $HOME/.pad/session.json, falling back to the temp dir when there // is no home. func sessionFilePath() string { if d, err := os.UserHomeDir(); err == nil && d != "" { return filepath.Join(d, ".pad", "session.json") } return filepath.Join(os.TempDir(), "pad", "session.json") } func handleEvent(e event.Event) { } func OpenFile(path string) { } // SetGestureExclusions is a no-op off Android (system gesture exclusion // rects are an Android API 29+ feature). func SetGestureExclusions(rects [][4]int) {}