github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/kbnm/findbin_nix.go (about)

     1  //go:build !windows
     2  // +build !windows
     3  
     4  package main
     5  
     6  import (
     7  	"path/filepath"
     8  )
     9  
    10  const kbnmBinary = "kbnm"
    11  const keybaseBinary = "keybase"
    12  
    13  // guessKeybasePath makes a platform-specific guess to where the binary might
    14  // be. This is only checked as a last-ditch effort when we can't find the
    15  // binary in other places.
    16  func guessKeybasePath(name string) string {
    17  	return filepath.Join("/usr/local/bin", name)
    18  }