- Update to //go:build tags, gofmt, and the android-35 javac template in //go:generate. - GetStore: reset store.Empty when the store directory exists (it was only set true when the dir was missing, so a reconfigured store kept the stale 'Empty' state and showed the configure button). - Rebuild PgpConnect.jar (android-35).
18 lines
257 B
Go
18 lines
257 B
Go
//go:build !android && linux
|
|
// +build !android,linux
|
|
|
|
package passgo
|
|
|
|
import (
|
|
"bytes"
|
|
"os/exec"
|
|
)
|
|
|
|
// Clip copies a string to the clipboard
|
|
func Clip(x string) {
|
|
b := bytes.NewBuffer([]byte(x))
|
|
cmd := exec.Command("xclip")
|
|
cmd.Stdin = b
|
|
cmd.Run()
|
|
}
|