github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/pinentry/pinentry_osx.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 //go:build darwin 5 // +build darwin 6 7 package pinentry 8 9 import ( 10 "os" 11 ) 12 13 func HasWindows() bool { 14 // We aren't in an ssh connection, so we can probably spawn a window. 15 return len(os.Getenv("SSH_CONNECTION")) == 0 16 }