You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ntool/nsys/clipboard/util_unix.go

21 lines
336 B
Go

//go:build !windows && !darwin
package clipboard
import "os"
// GetWriterBin program name
func GetWriterBin() string {
return WriterOnLin
}
// GetReaderBin program name
func GetReaderBin() string {
return ReaderOnLin
}
func available() bool {
// X clipboard is unavailable when not under X.
return os.Getenv("DISPLAY") != ""
}