Fix compilation for Windows

This commit is contained in:
2025-11-10 23:17:40 -05:00
parent a0f21b31f7
commit bc793178e1
23 changed files with 23 additions and 6 deletions
@@ -0,0 +1,16 @@
//go:build !windows && !darwin && !android && !ios && !termux && !wsl && interactive
package clip
import (
"os"
"strconv"
)
// LaunchClipClearProcess launches the timed clipboard clearing process.
// For interactive GUI/TUI implementations, the clipboard clearing process is launched as a goroutine.
// copySubject can be omitted to clear the clipboard immediately and unconditionally.
func LaunchClipClearProcess(copySubject string, isWayland bool) {
os.Args = []string{os.Args[0], "", strconv.FormatBool(isWayland)}
go ClipClearProcess(copySubject)
}