Fix mobile builds

This commit is contained in:
Theodor S. Midtlien
2026-09-25 16:08:35 +02:00
parent 498a4885de
commit 9907a39765
3 changed files with 14 additions and 3 deletions
@@ -1,3 +1,5 @@
//go:build darwin && !ios
package ipcauth
import (
@@ -0,0 +1,10 @@
package ipcauth
// isConsoleUser has no meaning on iOS, which has no console session to sit at.
//
// iOS satisfies the darwin constraint, so this keeps it off the macOS lookup.
// That one reaches SystemConfiguration through purego, which refuses to build
// for iOS without cgo.
func isConsoleUser(Identity) bool {
return false
}
+2 -3
View File
@@ -5,9 +5,8 @@ package ipcauth
// isConsoleUser has no meaning on a platform that exposes no console-user
// lookup, where nobody is ever at a console.
//
// Mobile is not built from here: ios satisfies darwin and android satisfies
// linux, so both take those lookups, which are present but never find a GUI
// session or a seat.
// Android is not built from here: it satisfies linux and takes that lookup,
// which is present but never finds a seat.
func isConsoleUser(Identity) bool {
return false
}