Files
termux-packages/packages/tgpt/0001-disable-clipboard.patch
2025-10-25 15:35:22 +00:00

28 lines
618 B
Diff

`golang.design/x/clipboard` requires JNI
--- a/src/helper/helper.go
+++ b/src/helper/helper.go
@@ -17,7 +17,6 @@
"github.com/aandrew-me/tgpt/v2/src/structs"
http "github.com/bogdanfinn/fhttp"
"github.com/fatih/color"
- "golang.design/x/clipboard"
"github.com/olekukonko/ts"
@@ -774,14 +773,6 @@
if userInput == "y" || userInput == "" {
ExecuteCommand(ShellName, ShellOptions, fullText)
- } else {
- err := clipboard.Init()
-
- if err == nil {
- clipboard.Write(clipboard.FmtText, []byte(fullText))
-
- fmt.Println("Copied command to clipboard")
- }
}
}
}