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.
21 lines
336 B
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") != ""
|
|
}
|