github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbnm/findbin_windows.go (about)

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