mirror of
https://github.com/quexten/goldwarden.git
synced 2025-01-10 01:52:49 +01:00
15 lines
421 B
Go
15 lines
421 B
Go
// Copyright 2015 Keybase, Inc. All rights reserved. Use of
|
|
// this source code is governed by the included BSD license.
|
|
|
|
//go:build dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris
|
|
// +build dragonfly freebsd linux nacl netbsd openbsd solaris
|
|
|
|
package pinentry
|
|
|
|
import "os"
|
|
|
|
func HasWindows() bool {
|
|
//If there is a DISPLAY then we can spawn a window to it.
|
|
return len(os.Getenv("DISPLAY")) > 0
|
|
}
|