Remove mobile clipboard management (this should be the responsibility of the GUI toolkit)

This commit is contained in:
2025-11-13 21:58:37 -05:00
parent 80cf65775a
commit 8d1dd48035
11 changed files with 13 additions and 76 deletions
+2 -2
View File
@@ -10,14 +10,14 @@ import (
)
// CopyString copies a string to the clipboard.
func CopyString(continuous bool, copySubject string) error {
func CopyString(clearClipboardAutomatically bool, copySubject string) error {
cmd := exec.Command("termux-clipboard-set")
_ = back.WriteToStdin(cmd, copySubject)
err := cmd.Run()
if err != nil {
return errors.New("unable to copy to clipboard: " + err.Error())
}
if !continuous {
if clearClipboardAutomatically {
LaunchClipClearProcess(copySubject)
}
return nil