Add support for the RCW daemon

This commit is contained in:
2025-05-04 19:48:20 -04:00
parent 826d94bc43
commit 21d60b8d0f
7 changed files with 48 additions and 14 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ import (
// LaunchClipClearProcess launches the timed clipboard clearing process.
// For non-interactive CLI implementations, an entirely separate process is created for this purpose.
func LaunchClipClearProcess(copySubject string, isWayland bool) {
executableName := os.Args[0]
cmd := exec.Command(executableName, "clipclear", strconv.FormatBool(isWayland))
cmd := exec.Command(os.Args[0], "clipclear", strconv.FormatBool(isWayland))
writeToStdin(cmd, copySubject)
err := cmd.Start()
if err != nil {