File: pinentry_others.go

package info (click to toggle)
golang-github-gopasspw-pinentry 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 96 kB
  • sloc: makefile: 2
file content (13 lines) | stat: -rw-r--r-- 255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
// +build !darwin,!windows

package pinentry

import "github.com/gopasspw/pinentry/gpgconf"

// GetBinary returns the binary name
func GetBinary() string {
	if p, err := gpgconf.Path("pinentry"); err == nil && p != "" {
		return p
	}
	return "pinentry"
}